Re: System resources and number of operations on an NSOperationQueue
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