Re: Need some advice on multithreading
Re: Need some advice on multithreading
- Subject: Re: Need some advice on multithreading
- From: Scott Ribe <email@hidden>
- Date: Tue, 25 Nov 2008 10:08:47 -0700
- Thread-topic: Need some advice on multithreading
> That's likely to produce
> higher-resolution results.
In some experiments with controlling finicky hardware, I discovered that
usleep has surprisingly high precision--I forget the numbers, but you can
pretty reliably sleep for a time substantially shorter than the scheduling
quantum. (Of course, if your process gets switched out, you will sleep
longer. Also note that I was testing on an 8-core machine, so my process
didn't need to spend terribly much time switched out...)
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden