comp.lang.ada
 help / color / mirror / Atom feed
* Example question
@ 2014-10-26 13:27 compguy45
  2014-10-26 14:18 ` Martyn Pike
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: compguy45 @ 2014-10-26 13:27 UTC (permalink / raw)


body Spreadsheet_Task is
    begin
        loop
            select
                accept Recalculate;
                Do_Recalculation;
            or
                accept Shutdown;
                exit;
            end select;
        end loop;
    end Spreadsheet_Task;

Tutorial says "If calls to both entries are already pending, one will be accepted non-deterministically." what does that mean? If calls are pending on bith entries it might happend that Shutdown is accepted and exits in which case thats not good solution at all


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-26 16:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-26 13:27 Example question compguy45
2014-10-26 14:18 ` Martyn Pike
2014-10-26 15:46   ` J-P. Rosen
2014-10-26 16:53     ` Martyn Pike
2014-10-26 14:21 ` Shark8
2014-10-26 15:42   ` Simon Wright
2014-10-26 15:48   ` Robert A Duff
2014-10-26 14:33 ` Niklas Holsti

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