|
|
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: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Count_Semaphore, package body Semaphore, seg_058299
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
package body Semaphore is
package body Count_Semaphore is
task body Counting_Semaphore is
S : Integer := Init;
begin
loop -- run forever, waiting for P or V to be called
select
when S > 0 =>
accept P;
S := S - 1;
or
accept V;
S := S + 1; -- S > INIT implies that new resources
end select; -- became available that were originall
end loop; -- unknown. This is not like Amoroso's
end Counting_Semaphore; -- version.
end Count_Semaphore;
task body Binary_Semaphore is
begin
loop
select
accept P;
or
terminate;
end select;
accept V;
end loop;
end Binary_Semaphore;
end Semaphore;
nblk1=2
nid=0
hdr6=4
[0x00] rec0=24 rec1=00 rec2=01 rec3=006
[0x01] rec0=02 rec1=00 rec2=02 rec3=001
tail 0x21765889287e280695099 0x42a00088462060003