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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d5977aa20216d24a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-02 11:01:46 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!newsgate.cistron.nl!newsfeeds.belnet.be!news.belnet.be!news2.euro.net!uunet!ash.uu.net!world!bobduff From: Robert A Duff Subject: Re: Ada Tasks vs Linux processes Sender: bobduff@world.std.com (Robert A Duff) Message-ID: Date: Mon, 2 Apr 2001 18:00:18 GMT References: <8H2y6.21501$ea6.2010619@news1.frmt1.sfba.home.com> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:6367 Date: 2001-04-02T18:00:18+00:00 List-Id: tmoran@acm.org writes: > LRM D.9(7) says the implementation must document the minimum delay > value that actually causes the task to block, while D.9(5) says a > delay of zero does not block, but is only "potentially blocking". > Even among compilers that don't implement Annex D, delay 0.0 usually > does not unnecessarily block, while any positive delay usually blocks > for two clock ticks, which on some systems can be a surprisingly long > time. Right, but "delay 0.0;" will cause the task to go to the end of its ready queue, so if there's any other task of the same priority waiting to run, it will run. So "delay 0.0;" does what some systems call "yield". (Assuming Annex D.) - Bob