comp.lang.ada
 help / color / mirror / Atom feed
From: Alfred.Peterson@sei.cmu.EDU.UUCP
Subject: Answer to 'a question'
Date: Thu, 27-Aug-87 11:58:37 EDT	[thread overview]
Date: Thu Aug 27 11:58:37 1987
Message-ID: <1987.8.27.15.36.30.Alfred.Peterson@sei.cmu.edu> (raw)

Text of question::
VAx Ada(tm) LRM 9.5.13 (?) says: If several tasks call the same entry
before a corresponding accept statement is reached, the calls are queued.
..
The calls are processed in the order of arrival.

My question is: Are those entry calls queued in the order of calls?
In other words, is the order of call the same as that of arrival?

-- Haerim Lee (IE53@NTSUVAX)

Answer::
YES.  The rules for several tasks calling an entry are the same as for one
caller as described in LRM 9.5.12.  The key is that the execution of the
calling task is suspended AFTER the queuing of the call takes place.  Only
then can the scheduler allow another task (possibly making a second call
to the same entry) to execute.  Thus 'order of call' = 'order of arrival'.

-- Spencer Peterson (asp@sei.cmu.edu) <Software Engineering Institute>

             reply	other threads:[~1987-08-27 15:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-08-27 15:58 Alfred.Peterson [this message]
1987-09-02 18:01 ` Answer to 'a question' Gary Young
1987-09-04 16:58   ` R.A. Agnew
1987-09-06 16:08     ` David S. Rosenblum
1987-09-10 21:05       ` R.A. Agnew
replies disabled

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