comp.lang.ada
 help / color / mirror / Atom feed
* Answer to 'a question'
@ 1987-08-27 15:58 Alfred.Peterson
  1987-09-02 18:01 ` Gary Young
  0 siblings, 1 reply; 5+ messages in thread
From: Alfred.Peterson @ 1987-08-27 15:58 UTC (permalink / 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>

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

end of thread, other threads:[~1987-09-10 21:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1987-08-27 15:58 Answer to 'a question' Alfred.Peterson
1987-09-02 18:01 ` 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

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