Fwd: Background Process?
Fwd: Background Process?
- Subject: Fwd: Background Process?
- From: Chris Suter <email@hidden>
- Date: Wed, 11 Mar 2009 12:52:22 +1100
Hi Kyle,
On Wed, Mar 11, 2009 at 12:35 PM, Kyle Sluder <email@hidden> wrote:
> It will put unnecessary burden on the processor,
> and therefore reduce battery life on mobile machines, by doing nothing
> in the runloop until the timer fires.
Whilst it probably is a bad idea to use an NSTimer to solve the
problem described, I don't believe that using it would put any burden
on the processor at all. If there's nothing to do, the thread will
suspend itself; it won't churn CPU cycles waiting for the timer to
fire.
-- Chris
_______________________________________________
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