From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <46481E9E-F3CD-4F75-8B2A-405829DFD5D2@pobox.com> References: <0263c93c2d57900638e664f1b538a76d@brasstown.quanstro.net> <0cf8de222eb5fa81721e8bcf4dd4e875@brasstown.quanstro.net> <20121128185827.863CFB827@mail.bitblocks.com> <46481E9E-F3CD-4F75-8B2A-405829DFD5D2@pobox.com> Date: Wed, 28 Nov 2012 21:12:53 +0000 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] sleep(2) historical question Topicbox-Message-UUID: ec735c5e-ead7-11e9-9d60-3106f5b1d025 If you look at the manual pages for nanosleep, clock_nanosleep and others on Linux you'll see that they have many bits of advice, BUGS notes, and other statements to the effect that the standard things do not work well, and most need some sort of real-time support to do anything sensible. An earlier variant did a busy wait when needed (which is unsurprising, but assumes processor wiring, and no scheduling away from the process). On 28 November 2012 19:27, David Arnold wrote: > Is POSIX' nanosleep() or old-POSIX/BSD/XOpen's usleep() out of the question?