Finding number of Cores of The Processor

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
 
L

lucas69

Yes, there are some apis.
ask on win32 api newsgroup to get them :
news://nntp.aioe.org/comp.os.ms-windows.programmer.win32
 
B

Bob Altman

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top