DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: B T

⟦886557093⟧ TextFile

    Length: 1075 (0x433)
    Types: TextFile
    Names: »B«

Derivation

└─⟦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⟧ 

TextFile

with Encapsulate;
use Encapsulate;
-- WITH TEXT_IO; USE TEXT_IO;
procedure Tstshared 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 Tstshared;