comp.lang.ada
 help / color / mirror / Atom feed
From: visicom!amstel!rlk@nosc.mil  (Bob Kitzberger)
Subject: Re: Ada delay
Date: 17 Sep 92 17:45:09 GMT	[thread overview]
Message-ID: <rlk.716751909@amstel> (raw)

firth@sei.cmu.edu (Robert Firth) writes:

>In article <Buq4Mr.D7H@math.uwaterloo.ca> amichail@plg.uwaterloo.ca (Amir Mich
ail) writes:

>For Ada, you need three efficient primitives
>
>. insert in correct place in ordered list
>
>. remove first in list
>
>. remove named task from list (for conditional entry and accept)
>
>Not hard.

The algorithm is easy -- the 'hard' part is implementing the lower-level
grunge  (myriad target boards, with myriad hardware timers [none worth the
silicon they're made of], mapping to type Duration without loss of
accuracy drift, etc., and making it easy to adapt from target to target 
system).  All of these are important when you want to implement
high-resolution periodic scheduling operations like Delay_Until and periodic
soft interrupts, which developers find out are necessary once they butt 
up against the delay statement's limitations.

Give me a 64-bit monotonic timer, incrementing once per CPU cycle, 
atomic CPU instructions to read the clock and set a single 64-bit
wake-up-time, and a cold Watney's and I'd be a happy Ada delay
implementor.  

	.Bob.
----------------
Bob Kitzberger          VisiCom Laboratories, Inc.
rlk@visicom.com         10052 Mesa Ridge Court, San Diego CA 92121 USA
                        +1 619 457 2111    FAX +1 619 457 0888

             reply	other threads:[~1992-09-17 17:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-09-17 17:45 Bob Kitzberger [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-09-21 13:43 Ada delay John Goodenough
1992-09-21  2:40 H.Shrikumar{shri@ncst.in}
1992-09-19 17:56 Gary Funck
1992-09-18  9:05 Guangxing Li
1992-09-18  1:11 mcsun!uknet!yorkohm!minster!ken
1992-09-17 15:04 Jorge Luis Diaz-Herrera
1992-09-17 14:26 cis.ohio-state.edu!news.sei.cmu.edu!firth
replies disabled

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