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:
http://msdn.microsoft.com/library/de...nformation.asp
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++.