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

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

References: 
 >Background Process? (From: Pierce Freeman <email@hidden>)
 >Re: Background Process? (From: Daniel Richman <email@hidden>)
 >Re: Background Process? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Background Process?
  • Next by Date: Re: Background Process?
  • Previous by thread: Re: Background Process?
  • Next by thread: Why does releasing this array cause a crash?
  • Index(es):
    • Date
    • Thread