• 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: idle waste
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: idle waste


  • Subject: Re: idle waste
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 28 Mar 2002 13:46:52 -0800

Paul,

Open a Terminal window, and type "top". You'll see how much CPU time the various apps are using. Most cocoa apps get approximately zero CPU time when they're idle.

On Thursday, March 28, 2002, at 12:07 PM, Paul Cezanne wrote:

If I have a Cocoa application just sitting there doing nothing, how much CPU time does it waste? A lot, some, not much, negligible?

I essentially need to write a UNIX daemon and would rather do it in Cocoa since it has to have some minimal UI, but it will be running all the time.

I will have an NSTimer running to trigger the stuff I need to do.

Bonus question: Does the amount wasted change if I have a window with controls in it open?

Yes, if those controls are actually *doing* anything.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: idle waste
      • From: Shawn Erickson <email@hidden>
References: 
 >idle waste (From: Paul Cezanne <email@hidden>)

  • Prev by Date: Re: check out the spreadsheet control
  • Next by Date: Re: idle waste
  • Previous by thread: idle waste
  • Next by thread: Re: idle waste
  • Index(es):
    • Date
    • Thread