Re: How to find out if running on new dual core G5
Re: How to find out if running on new dual core G5
- Subject: Re: How to find out if running on new dual core G5
- From: Dave Zarzycki <email@hidden>
- Date: Fri, 18 Nov 2005 10:11:01 -0800
The following sysctl variables will probably be useful to you then:
* hw.ncpu - The maximum number of processors that
could be available this boot.
* Use this value for sizing of static
per processor arrays; i.e. processor load statistics.
*
* hw.activecpu - The number of processors currently
available for executing threads.
* Use this number to determine the
number threads to create in SMP aware applications.
* This number can change when power
management modes are changed.
*
* hw.physicalcpu - The number of physical processors
available in the current power management mode.
* hw.physicalcpu_max - The maximum number of physical
processors that could be available this boot
*
* hw.logicalcpu - The number of logical processors
available in the current power management mode.
* hw.logicalcpu_max - The maximum number of logical
processors that could be available this boot
davez
On Nov 18, 2005, at 10:03 AM, Martin Bestmann wrote:
Hi,
I like to know how I can find out programmatically if I'm running on
a dual core G5.
Thanks,
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden