comp.lang.ada
 help / color / mirror / Atom feed
* delay 0.0
@ 1997-11-01  0:00 Tom Moran
  0 siblings, 0 replies; only message in thread
From: Tom Moran @ 1997-11-01  0:00 UTC (permalink / raw)



>From a discussion on chat@gnat.com I conclude;
  delay 0.0; may, or may not, cause a task switch.
  If the compiler implements Annex D and the program includes a Pragma
Task_Dispatching_Poicy (FIFO_Within_Priorities); then a delay 0.0;
should definitely cause a task switch (assuming, obviously, there's
another task ready to switch to).
  The compiler should document a value D such that "delay D;" (or
greater than D) will cause blocking and thus task switching.  But if the
time resolution is poor (eg the 55ms common on PCs) the task may block
that long even if D is much less.
  Two questions: Is my understanding correct?  Are there compilers that
don't task switch on "delay 0.0;"?





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-11-01  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-01  0:00 delay 0.0 Tom Moran

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