How many processors do I have?
How many processors do I have?
- Subject: How many processors do I have?
- From: Ben Haller <email@hidden>
- Date: Wed, 11 Nov 2009 17:34:22 -0500
OK, either I'm being exceptionally dense or there's a bug in
NSProcessInfo on 10.5. If I execute:
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
int processorCount = [processInfo activeProcessorCount];
NSLog(@"processorCount == %d", processorCount);
I get a log that says "processorCount == 16". But I am under the
strong impression that I have a dual-processor quad-core machine,
which makes 8 processors, and System Profiler backs me up on this:
Model Name: Mac Pro
Model Identifier: MacPro4,1
Processor Name: Quad-Core Intel Xeon
Processor Speed: 2.26 GHz
Number Of Processors: 2
Total Number Of Cores: 8
That seems fairly unambiguous. Total number of cores == 8. So
what gives? Is there some subtle definition of what an "active
processor" is that I'm missing, such that I have twice as many "active
processors" as I have cores, or does NSProcessInfo have a bug (in
which case, yes, I will file it :->)? And if it's an NSProcessInfo
bug, what's a non-buggy way to find out my processor count?
Thanks...
Ben Haller
Stick Software
_______________________________________________
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