comp.lang.ada
 help / color / mirror / Atom feed
* 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

* Re: Scheduling
  1999-01-18  0:00 ` Scheduling dennison
@ 1999-01-21  0:00   ` Dr. Hubert B. Keller
  0 siblings, 0 replies; 3+ messages in thread
From: Dr. Hubert B. Keller @ 1999-01-21  0:00 UTC (permalink / raw)


How much code do you expect to get?
I can serve you with code parts of a real time simulations system with a huge
amount of tasking.
H.K.

________________________________________________________________

Dr. Hubert B. Keller          Forschungszentrum Karlsruhe
++49/7247/82-5756            - Technik und Umwelt -
Fax: -5730                        Institut f�r Angewandte Informatik
e-mail: keller@iai.fzk.de     Postfach 3640, 76021 Karlsruhe

MICS Group - Machine Intelligence for Complex Systems Control
  http://www.iai.fzk.de/Institut/UI/INPRO/inpro.html
The OO-Language Ada95
  http://www.Ada-Deutschland.de/
The German Society of Computer Science
  http://www.gi-ev.de/






^ 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