From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!eu.feeder.erje.net!feeder.erje.net!us.feeder.erje.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Example question Date: Sun, 26 Oct 2014 11:48:15 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <0fbd755d-7bcf-42b1-a20b-c6a2c74c7d6e@googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1414338475 10187 192.74.137.71 (26 Oct 2014 15:47:55 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 26 Oct 2014 15:47:55 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:24lrSK2Q7RbcNmuRzGQUBdCgp3E= Xref: news.eternal-september.org comp.lang.ada:22760 Date: 2014-10-26T11:48:15-04:00 List-Id: Shark8 writes: > It means that if it enters the SELECT and there are already tasks > waiting at the rendezvous for both entry-points then one will be chosen > "at random". It is not required to be random, and it is unlikely that any Ada implementation would make it random. By default, which one is chosen is arbitrary. The implementation will likely do something simple, like always choosing the first one. It won't roll dice. ;-) If you specify the Priority_Queuing policy, then the highest priority call is chosen. If there are multiple calls at that priority, it chooses the first one. See D.4(14). >...(Though I heard that some compilers /did/ have a > deterministic behavior here.) Yes. All compilers, I'd guess. - Bob