2009/11/11 Ben Haller <bhcocoa...@sticksoftware.com>:
>  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?

Hyper-Threading?..

Also, do "sysctl machdep.cpu" from the terminal to get more info on your cpus.

Cheers,
--
Igor
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to