By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,691 Members | 1,364 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,691 IT Pros & Developers. It's quick & easy.

Figuring processor utilization on MP Windows systems (2003 Server)

P: n/a
This one has got me stumped. Is there a way to figure out the utilization of
each processor in an MP system? (2P and above)

Right now I use the NtQuerySystemInformation API to get busy and idle time
of each processor in a system and this works most of the time except on
64-bit Windows 2003 server on some platforms. What makes me nervous is MS
says it may drop support for this call in future OSes so I can't depend on it
long term anyway. Here's information on NtQuerySystemInformation:

The alternate functions MS provides in the link above such as GetSystemTimes
only provides busy and idle times for all processors combined, not for each
individual processor which makes it impossible to determine the utilization
of an individual processor in an MP system.

Any ideas would be greatly appreciated. BTW I'm using Visual Studio 7.0
with C++.
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.