Re: NSTimer questions
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