site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Thunderbird 1.5.0.7 (Macintosh/20060909) _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Greg wrote: So then why do I barely see 1% CPU utilization on linux? But how accurate is it? When I last dealt with this a few years ago, nanosleep always slept at least 10ms on Linux. Some quick googling shows this still seems to be the case. nanosleep with a timespec = { 0, 10000 } in a tight loop uses only about 5-7% CPU on a MacBook Pro. So if you simulate the Linux behavior by always rounding up to the nearest 10ms you'll get reasonably similar behavior. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jan Brittenson