comp.lang.ada
 help / color / mirror / Atom feed
* Ada DELAY statement accuracy?
@ 1997-01-27  0:00 Jeff Motes
  1997-01-28  0:00 ` Jim Hopper
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Motes @ 1997-01-27  0:00 UTC (permalink / raw)



I need an Ada Delay routine that is accurate to 1 ms.  The Ada DELAY doesn't 
appear to do this. Anyone have any suggestions?





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

* Re: Ada DELAY statement accuracy?
@ 1997-01-27  0:00 Arthur Evans Jr
  0 siblings, 0 replies; 3+ messages in thread
From: Arthur Evans Jr @ 1997-01-27  0:00 UTC (permalink / raw)



In article <5cir31$q5d@mic14.redstone.army.mil>
jmotes@sed.redstone.army.mil (Jeff Motes) writes:

> I need an Ada Delay routine that is accurate to 1 ms.  The Ada DELAY doesn't 
> appear to do this. Anyone have any suggestions?

The question isn't really meaningful.

The semantics of delay in 9.6(20-21) calls for blocking the task issuing
it until a specific time, after which the task is then eligible to run.
Will it start running then, or within 1 ms of then?  Nothing in Ada's
definition says.  It depends at least on what other tasks are then
running, their priority, and the priority of the task issuing the delay.
There can be no upper bound on how long the task will delay.

Looking at it another way, if two tasks both execute a 'delay until'
with the same target time, then (on a uni-processor) they obviously
can't both start at that time.  And if the task that happens to start
first has higher priority than the other, the other can wait arbitrarily
long.

Perhaps you can restate your question so as to make more clear what you
want.

Art Evans

Arthur Evans Jr, PhD        Phone: 412-963-0839
Ada Consulting              FAX:   412-963-0927
461 Fairview Road
Pittsburgh PA  15238-1933
evans@evans.pgh.pa.us




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

* Re: Ada DELAY statement accuracy?
  1997-01-27  0:00 Ada DELAY statement accuracy? Jeff Motes
@ 1997-01-28  0:00 ` Jim Hopper
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Hopper @ 1997-01-28  0:00 UTC (permalink / raw)



In article <5cir31$q5d@mic14.redstone.army.mil>
jmotes@sed.redstone.army.mil (Jeff Motes) writes:

> I need an Ada Delay routine that is accurate to 1 ms.  The Ada DELAY doesn't 
> appear to do this. Anyone have any suggestions?

on what platform!  answer is different depending upon platform.

jim




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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-27  0:00 Ada DELAY statement accuracy? Jeff Motes
1997-01-28  0:00 ` Jim Hopper
  -- strict thread matches above, loose matches on Subject: below --
1997-01-27  0:00 Arthur Evans Jr

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