comp.lang.ada
 help / color / mirror / Atom feed
* Ada Task priorities
@ 1997-01-26  0:00 Kevin Radke
  1997-01-26  0:00 ` Jonathan Polley
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Kevin Radke @ 1997-01-26  0:00 UTC (permalink / raw)




Hello,

Can one guarantee how tasks at different priority
levels will be executed with respect to eachother?
(Speaking in both ada83 and ada95 terms...)

I.E. the following scenario:

  task a at the highest priority level
  task b at a priority level between the highest and lowest levels
  task c at the lowest priority level

Can one guarantee that if all 3 tasks are eligible for execution
at the same time, that task a will finish it's work before
task b begins to run, and task c will only run after both
tasks a and b finish? (Assuming no tasks rendezvous with
other tasks during this time?)
I suppose even OS calls would make this highly platform dependent.

The ada83 RM seems to be pretty explicit about requiring "The
highest priority eligible task must be executing at any given
time", but the ada95 RM seems less verbose about this.  Even
annex D doesn't seem to require this. (Unless I missed something
obvious, which I probably have...)

My personal opinion is that using assumptions about priorities like this
is just asking for trouble, but I thought I would get other people's opinions
on this...

Thanks!
Kevin

-- 
/\/\Under Construction/\/\ kmradke@inav.net




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

end of thread, other threads:[~1997-01-28  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-26  0:00 Ada Task priorities Kevin Radke
1997-01-26  0:00 ` Jonathan Polley
1997-01-27  0:00   ` Geert Bosch
1997-01-26  0:00 ` Robert Dewar
1997-01-28  0:00   ` Robert I. Eachus
1997-01-27  0:00 ` Michael F Brenner
1997-01-28  0:00   ` Kevin Radke
1997-01-27  0:00 ` Geert Bosch

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