From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f8311a3a7edd715 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-12 13:00:13 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!feed2.onemain.com!feed1.onemain.com!xfer13.netnews.com!netnews.com!newspeer1.nac.net!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: Using "delay until" in real-time Date: Tue, 12 Dec 2000 20:54:32 GMT Organization: Deja.com Message-ID: <9163a4$2c5$1@nnrp1.deja.com> References: <915jl7$jt5$1@nnrp1.deja.com> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Tue Dec 12 20:54:32 2000 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001207 X-Http-Proxy: 1.0 x51.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:3011 Date: 2000-12-12T20:54:32+00:00 List-Id: In article , Keith Thompson wrote: > Ted Dennison writes: > The value 1.0/60.0 is still not exactly representable; it's going to > be either 0.166666666 or 0.166666667. Right, that's the issue. The resolution just dictates how often we get hosed. We don't want to get hosed at all. > Is the scheduler intended to be portable? If the design of the > scheduler depends on the underlying 240Hz clock tick, perhaps you > should just bite the bullet and delay for 4 ticks. It is portable right now. The only system dependancy is that the executive's clock rate be achieveable exactly. On the OS we are using (vxWorks) that can be set via a script or compiled into the kernel. I see no good reason to make it non-portable if I don't have to. I'm trying out the cycle-counting solution right now. If anyone has any better ideas, I'd still like to hear them. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/