comp.lang.ada
 help / color / mirror / Atom feed
From: compguy45@gmail.com
Subject: Example question
Date: Sun, 26 Oct 2014 06:27:49 -0700 (PDT)
Date: 2014-10-26T06:27:49-07:00	[thread overview]
Message-ID: <0fbd755d-7bcf-42b1-a20b-c6a2c74c7d6e@googlegroups.com> (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


             reply	other threads:[~2014-10-26 13:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-26 13:27 compguy45 [this message]
2014-10-26 14:18 ` Example question 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
replies disabled

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