Re: idle waste
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.
References: | |
| >idle waste (From: Paul Cezanne <email@hidden>) |