|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 2897 (0xb51)
Types: TextFile
Names: »B«
└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
└─⟦5cb1d1d7f⟧ »DATA«
└─⟦3b1ee7bd8⟧
└─⟦this⟧
-- ada tasking tester
-- task head is the controller
-- tasks link are the chain of tasks
with Instrument;
use Instrument;
procedure Tptcc2 is
task Head is
entry Give;
end Head;
task Link1 is
entry Give;
end Link1;
task Link2 is
entry Give;
end Link2;
task Link3 is
entry Give;
end Link3;
task Link4 is
entry Give;
end Link4;
task Link5 is
entry Give;
end Link5;
task Link11 is
entry Give;
end Link11;
task Link12 is
entry Give;
end Link12;
task Link13 is
entry Give;
end Link13;
task Link14 is
entry Give;
end Link14;
task Link15 is
entry Give;
end Link15;
task body Head is
begin
Start ("TPTCC2", "Task Perf., Task Chain, length 10 (test)");
for I in 1 .. 1000 loop
Link1.Give;
accept Give do
null;
end Give;
end loop;
Stop;
abort Link1, Link2, Link3, Link4, Link5,
Link11, Link12, Link13, Link14, Link15;
end Head;
task body Link1 is
begin
loop
accept Give do
null;
end Give;
Link2.Give;
end loop;
end Link1;
task body Link2 is
begin
loop
accept Give do
null;
end Give;
Link3.Give;
end loop;
end Link2;
task body Link3 is
begin
loop
accept Give do
null;
end Give;
Link4.Give;
end loop;
end Link3;
task body Link4 is
begin
loop
accept Give do
null;
end Give;
Link5.Give;
end loop;
end Link4;
task body Link5 is
begin
loop
accept Give do
null;
end Give;
Link11.Give;
end loop;
end Link5;
task body Link11 is
begin
loop
accept Give do
null;
end Give;
Link12.Give;
end loop;
end Link11;
task body Link12 is
begin
loop
accept Give do
null;
end Give;
Link13.Give;
end loop;
end Link12;
task body Link13 is
begin
loop
accept Give do
null;
end Give;
Link14.Give;
end loop;
end Link13;
task body Link14 is
begin
loop
accept Give do
null;
end Give;
Link15.Give;
end loop;
end Link14;
task body Link15 is
begin
loop
accept Give do
null;
end Give;
Head.Give;
end loop;
end Link15;
begin
null;
end Tptcc2;