• 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: System resources and number of operations on an NSOperationQueue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System resources and number of operations on an NSOperationQueue


  • Subject: Re: System resources and number of operations on an NSOperationQueue
  • From: Ken Thomases <email@hidden>
  • Date: Sun, 14 Nov 2010 13:40:33 -0600

On Nov 14, 2010, at 12:39 PM, Antonio Nunes wrote:

> On 14 Nov 2010, at 16:25, Ken Thomases wrote:
>
>> -[NSProcessInfo activeProcessorCount]
>
> I see there is also processorCount. The docs totally don't explain what the difference is. Is an active processor one that is available for processing, but not necessarily being used, or is it one that is definitely in the process of churning bits?

CPU cores can be disabled.  For example, /Developer/Extras/PreferencePanes/Processor.prefPane can disable cores.

-processorCount returns how many cores are present, -activeProcessorCount returns how many of those are enabled.

Cheers,
Ken

_______________________________________________

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: 
 >System resources and number of operations on an NSOperationQueue (From: Antonio Nunes <email@hidden>)
 >Re: System resources and number of operations on an NSOperationQueue (From: Ken Thomases <email@hidden>)
 >Re: System resources and number of operations on an NSOperationQueue (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Re: NSController controllerEditor:didCommit:… exception
  • Next by Date: Re: System resources and number of operations on an NSOperationQueue
  • Previous by thread: Re: System resources and number of operations on an NSOperationQueue
  • Next by thread: NSController controllerEditor:didCommit:… exception
  • Index(es):
    • Date
    • Thread