comp.lang.ada
 help / color / mirror / Atom feed
From: Tom Moran <tmoran@bix.com>
Subject: delay 0.0
Date: 1997/11/01
Date: 1997-11-01T00:00:00+00:00	[thread overview]
Message-ID: <345B841F.293E@bix.com> (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;"?





                 reply	other threads:[~1997-11-01  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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