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

⟦1ded40502⟧ TextFile

    Length: 1042 (0x412)
    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

-- ada tasking tester
-- task head is the controller
-- tasks link are the chain of tasks

with Instrument;
use Instrument;

procedure Tpgtb2 is

    G1 : Boolean := True;
    G2 : Boolean := False;
    task Head is
        entry Give;
    end Head;
    task Link1 is
        entry Give;
        entry S2;
    end Link1;
    task body Head is
    begin
        Start ("TPGTB2", "Task Perf. Guard Test, 2 guards (test)");
        for I in 1 .. 1000 loop
            Link1.Give;
            accept Give do
                null;
            end Give;
        end loop;
        Stop;
        abort Link1;
    end Head;
    task body Link1 is
    begin
        loop
            select
                when G2 =>
                    accept S2 do
                        null;
                    end S2;
            or
                when G1 =>
                    accept Give do
                        null;
                    end Give;
            end select;
            Head.Give;
        end loop;
    end Link1;
begin
    null;
end Tpgtb2;