site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com I assume you ment 10us? And 5-7% vs 1% CPU usage is acceptably explainable by syscall overhead. It appears history hasn't lost its sense of irony after all 8) -Ed _______________________________________________ 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... On Feb 3, 2007, at 3:03 AM, Jan Brittenson wrote: 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