|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Signals, seg_043d94
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
package body Signals is
task Signaler is
entry Wait;
entry Signal;
entry Fopen;
end Signaler;
task body Signaler is
The_File : Text_Io.File_Type;
C : Character;
I : Natural := 0;
begin
loop
accept Wait do
Text_Io.Put_Line ("tache a recu le signal wait");
end Wait;
accept Signal do
Text_Io.Put_Line ("tache a recu le signal signal");
end Signal;
accept Fopen do
Text_Io.Open (The_File, Text_Io.In_File, "test_file");
Text_Io.Set_Input (The_File);
while not Text_Io.End_Of_File loop
I := I + 1;
Text_Io.Get (The_File, C);
if Text_Io.End_Of_Line then
Text_Io.New_Line (Text_Io.Standard_Output, 1);
end if;
Text_Io.Put (Text_Io.Standard_Output, C);
exit when I = 750;
--Text_Io.New_Page (Text_Io.Standard_Output);
end loop;
I := 0;
Text_Io.Close (The_File);
Text_Io.Set_Input (Text_Io.Standard_Input);
end Fopen;
end loop;
end Signaler;
procedure Wait is
begin
Text_Io.Put_Line ("Je demande a la tache de patienter");
Signaler.Wait;
end Wait;
procedure Signal is
begin
Text_Io.Put_Line ("j envoie le signal a la tache");
Signaler.Signal;
end Signal;
procedure Open (File : String) is
begin
Text_Io.Put_Line ("j autorise la tache a ouvrir le fichier");
Signaler.Fopen;
end Open;
end Signals;
nblk1=4
nid=4
hdr6=4
[0x00] rec0=20 rec1=00 rec2=01 rec3=036
[0x01] rec0=24 rec1=00 rec2=02 rec3=000
[0x02] rec0=04 rec1=00 rec2=04 rec3=000
[0x03] rec0=11 rec1=00 rec2=02 rec3=000
tail 0x2153f5a64863b7d41b274 0x42a00088462060003
Free Block Chain:
0x4: 0000 00 03 00 40 80 02 29 3b 02 00 16 20 20 20 20 20 ┆ @ ); ┆
0x3: 0000 00 00 00 08 80 02 73 3b 02 00 00 00 68 65 20 61 ┆ s; he a┆