• 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: Background Process?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Background Process?
      • From: Kyle Sluder <email@hidden>
References: 
 >Background Process? (From: Pierce Freeman <email@hidden>)
 >Re: Background Process? (From: Daniel Richman <email@hidden>)
 >Re: Background Process? (From: Kyle Sluder <email@hidden>)
 >Re: Background Process? (From: Roland King <email@hidden>)
 >Re: Background Process? (From: Kyle Sluder <email@hidden>)
 >Re: Background Process? (From: Chris Suter <email@hidden>)
 >Re: Background Process? (From: Darren Minifie <email@hidden>)

  • Prev by Date: Re: Garbage collected and non-garbage collected
  • Next by Date: Re: Odd interaction of NSTrackingArea behaviour with drag and drop
  • Previous by thread: Re: Background Process?
  • Next by thread: Re: Background Process?
  • Index(es):
    • Date
    • Thread