Nanosleep granularity in MacOS?
Nanosleep granularity in MacOS?
- Subject: Nanosleep granularity in MacOS?
- From: Jay Reynolds Freeman <email@hidden>
- Date: Sun, 17 Jan 2010 16:50:51 -0800
If there is a more appropriate mailing list for this question,
please suggest it.
Perusing the web suggests that there is a "granularity" -- a
minimum sleep time -- at which the behavior of the "nanosleep"
function changes: For times shorter than the threshold, it
simply loops, but for longer times it may in fact actually
sleep, and give other processes a chance to run,
Does anyone know what this time is (or what other, possibly
related times are), for MacOS?
The answer is likely processor and clock-speed dependent, so
is there a way to obtain this information at run-time on
particular Mac platforms?
Thanks.
-- Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden