|
|
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: 1082 (0x43a)
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⟧
with Encapsulate;
use Encapsulate;
with Text_Io;
use Text_Io;
procedure Test_Shared is
Local : Composite := Set_To (-1);
task A;
task B;
task C;
procedure Put (C : Character; I : Integer);
task body A is
begin
Read (Local);
Put ('A', Value_Of (Local));
Write (Set_To (1));
Read (Local);
Put ('A', Value_Of (Local));
Write (Set_To (2));
Read (Local);
Put ('A', Value_Of (Local));
end A;
task body B is
begin
Read (Local);
Put ('B', Value_Of (Local));
Write (Set_To (3));
Read (Local);
Put ('B', Value_Of (Local));
end B;
task body C is
begin
Write (Set_To (4));
Read (Local);
Put ('C', Value_Of (Local));
Write (Set_To (5));
Read (Local);
Put ('C', Value_Of (Local));
end C;
procedure Put (C : Character; I : Integer) is
begin
Msg.Put ("Task " & C & " read the value " & Integer'Image (I));
end Put;
begin
null;
end Test_Shared;