• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need some advice on multithreading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Need some advice on multithreading (From: Peter Duniho <email@hidden>)

  • Prev by Date: Re: what does FAILED TO GET ASN FROM CORESERVICES mean?
  • Next by Date: Re: NSDate's descriptionwithLocale method output
  • Previous by thread: Re: Need some advice on multithreading
  • Next by thread: Re: Need some advice on multithreading
  • Index(es):
    • Date
    • Thread