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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to