• 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: Giving the CPU a break...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Giving the CPU a break...


  • Subject: Re: Giving the CPU a break...
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 21 Nov 2002 15:02:42 +0100

On Thursday, Nov 21, 2002, at 05:32 Europe/Prague, Buzz Andersen wrote:

+setPriority is indeed what I'm using. I honestly have never really noticed much appreciable difference whether it is set to 0.1 or 1--either way, my rogue loop seems to consume the processor time voraciously :-).

The difference should be for other tasks: if the one of yours has high priority, it would compete with them; if it has a low priority, it would yield automatically whenever another task is ready to run.

Nevertheless, in case no other task is ready to run, your task naturally would get all CPU it can, regardless its priority.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: 
 >Re: Giving the CPU a break... (From: Buzz Andersen <email@hidden>)

  • Prev by Date: Re: how to crash on normally ignored exceptions
  • Next by Date: Re: Two mnemonics in Cocoa
  • Previous by thread: Re: Giving the CPU a break...
  • Next by thread: Re: Giving the CPU a break...
  • Index(es):
    • Date
    • Thread