comp.lang.ada
 help / color / mirror / Atom feed
From: ie53@NTSUVAX.BITNET (HAERIM LEE)
Subject: All possible results?
Date: Fri, 4-Sep-87 14:48:38 EDT	[thread overview]
Date: Fri Sep  4 14:48:38 1987
Message-ID: <8709041817.AA10351@ucbvax.Berkeley.EDU> (raw)

-- What are all possible results of the execution of the following
-- code on BOTH a single processor system and a multi-processor system?
-- Can an exception 'TASKING_ERROR' be raised at (***)?  Or will "accepted"
-- be ALWAYS printed on the screen?  Or sometimes printing "accepted" and
-- sometimes raising 'TASKING_ERROR' will occur?  Please consider BOTH
-- systems mentioned above.  Send any comments to IE53@NTSUVAX.

with text_io; use text_io;
procedure kill is
  task a is
    entry e;
  end a;
  task body a is
  begin
    select
        accept e do
          put_line("accepted");
        end e;
    or
        terminate;
    end select;
  end a;
begin
  a.e;          -- ***
end kill;

             reply	other threads:[~1987-09-04 18:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-09-04 18:48 HAERIM LEE [this message]
     [not found] <ie53%NTSUVAX.BITNET@wiscvm.wisc.edu>
1987-09-04 19:50 ` All possible results? Geoff Mendal
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox