* Scheduling
@ 1999-01-17 0:00 MarcoPolo
1999-01-18 0:00 ` Scheduling dennison
0 siblings, 1 reply; 3+ messages in thread
From: MarcoPolo @ 1999-01-17 0:00 UTC (permalink / raw)
Hi im looking for basic Ada scheduling code examples,
any help will be greatly appreciated.
regards Nic
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Scheduling
1999-01-17 0:00 Scheduling MarcoPolo
@ 1999-01-18 0:00 ` dennison
1999-01-21 0:00 ` Scheduling Dr. Hubert B. Keller
0 siblings, 1 reply; 3+ messages in thread
From: dennison @ 1999-01-18 0:00 UTC (permalink / raw)
In article <e8pWMFhQ#GA.314@ntawwabp.compuserve.com>,
"MarcoPolo" <nic_azzuri@compuserve.com> wrote:
> Hi im looking for basic Ada scheduling code examples,
Is the following simple enough for you? If not, you can add overrun detection
or whatever you want. (*WARNING*, uncompiled. May contain syntax errors).
task body Frob is
Wakeup : Ada.Calendar.Time := Ada.Calendar.Clock;
Rate : constant Duration := 1.0 / 60.0;
begin
loop
Do_Work;
-- "Scheduling" code
Wakeup := Wakeup + Rate;
delay until Wakeup;
end loop;
end Frob;
T.E.D.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-01-21 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-17 0:00 Scheduling MarcoPolo
1999-01-18 0:00 ` Scheduling dennison
1999-01-21 0:00 ` Scheduling Dr. Hubert B. Keller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox