Finding number of Cores of The Processor

  • Thread starter Thread starter Akash
  • Start date Start date
A

Akash

Hi,
I am using getProcessTimes API for calculating CPU Usage
On a Multi-Core processor i have observed that the %CPU Usage that is
multiple of the number of cores of the processor
Is there any API in VC to find the number of Cores of a processor?
(PS: Without using WMI ie)

url:http://www.ureader.com/gp/1452-1.aspx
 
Yes, there are some apis.
ask on win32 api newsgroup to get them :
news://nntp.aioe.org/comp.os.ms-windows.programmer.win32
 
The NUMBER_OF_PROCESSORS environment variable tells you how many total
processors your PC has (number of CPUs times number of cores per CPU times 2
if hyperthreading is enabled)

Bob
 
Back
Top