From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 18 Sep 92 09:05:48 GMT From: mcsun!uknet!cam-cl!cam-cl!gxl@uunet.uu.net (Guangxing Li) Subject: Re: Ada delay Message-ID: <1992Sep18.090548.20198@cl.cam.ac.uk> List-Id: _______________________ Amir Michail (amichail@plg.uwaterloo.ca) wrote: : How is the Ada delay statement implemented? I suppose it uses a hardware : timer coupled with a clock server, but this would mean that the time : taken for a delay is unbounded (since we have to search an ordered list : of tasks). If this is true, then how can one possibly use it for : realtime scheduling of periodic tasks?? By dynamically updating the delay value, people can still have accurate periodic tasks, even through the delay statement is not accurate. For example start_time = now; for(;;) { load(); next_period_start = start_time + period; start_time = next_period_start; delay = next_period_start - now; Ada_delay(delay); }