Re: Background Process?
Re: Background Process?
- Subject: Re: Background Process?
- From: Michael Ash <email@hidden>
- Date: Tue, 10 Mar 2009 23:38:12 -0400
On Tue, Mar 10, 2009 at 11:28 PM, Darren Minifie <email@hidden> wrote:
> Can't somebody write a small app and and profile it to get a conclusive
> answer? I'd do it but I'm lazy. I am interested in the outcome though.
Just run Activity Monitor and look at one of the numerous idling GUI
apps. Notice how it uses 0% CPU.
The notion that adding a timer to a runloop would somehow cause that
runloop to suck up CPU time when the runloop is idle is nonsensical.
The whole point of the runloop is that it sleeps the process until
some activity is required. A background process sitting on a timer
*will* take up various resources (memory, file descriptors, kernel
structures, etc.) but CPU time is not among them.
Mike
_______________________________________________
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