Re: Sleeping in nanos
Re: Sleeping in nanos
- Subject: Re: Sleeping in nanos
- From: Jonas Maebe <email@hidden>
- Date: Thu, 8 Feb 2007 18:20:22 +0100
On 8 feb 2007, at 18:11, Greg wrote:
Like I said before, this function is mainly useful in *time-
critical applications*, and in such applications, this
unpredictable function is absolutely useless.
Any kind of "sleep" variant is generally not useful in time-critical
applications, except if they are of the variation "sleepuntil" (like
Ada provides). In general, time critical applications work by telling
the OS they want to be triggered every X ms, or by doing some
sleepuntil-like thing in a loop.
I don't think nanosleep was ever intended for time-critical
applications, because it simply doesn't fit the paradigms normally
used in such applications.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden