• 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: NSTimer questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer questions


  • Subject: Re: NSTimer questions
  • From: Steve Checkoway <email@hidden>
  • Date: Wed, 22 Sep 2004 17:35:24 -0700

On Sep 22, 2004, at 2:50 PM, Christoffer Lerno wrote:
One might suppose that running a select with say 1 microsecond, could work. That way one could yield repeatedly until (for example) 10 ms has passed. Unfortunately, running a select seems to take a minimum of 10 ms no matter what delay I enter, this delay might in some cases extend to 50 ms.

Last I heard, OS X had a scheduling granularity of 10 ms. If you absolutely must do something at a particular time, you could busy wait, but that's a bad idea for just about anything other than spin locks.


As I understand it, the 10 ms scheduling granularity is fairly common. Newer linux kernels have a 1 ms granularity but older linux, Windows, and OS X all have 10 ms. Then again, my information could be out of date.

- Steve

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTimer questions
      • From: Christoffer Lerno <email@hidden>
References: 
 >NSTimer questions (From: Christoffer Lerno <email@hidden>)
 >Re: NSTimer questions (From: j o a r <email@hidden>)
 >Re: NSTimer questions (From: Christoffer Lerno <email@hidden>)

  • Prev by Date: Re: Unit testing framework suggestions?
  • Next by Date: Re: Newbie: My first app, how to?
  • Previous by thread: Re: NSTimer questions
  • Next by thread: Re: NSTimer questions
  • Index(es):
    • Date
    • Thread