Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Determine the number of processors


1 reply to this topic

brianw

brianw
  • Members
  • 7 posts

Posted 09 October 2002 - 17:17

I'm running ISWI 2.x.  Is there a way that I can determine the number of processors that the machine has?
_Brian Welch
MCPx5

Leigh Ravenhall

Leigh Ravenhall
  • Members
  • 269 posts

Posted 14 October 2002 - 00:50

In a few of my installations I get this value from the environment variable NUMBER_OF_PROCESSORS.  It's a quick method, making a GetEnvVar call.

The other option is to look at HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor.  There will be one subkey here for each process in the machine.
Leigh Ravenhall
Expert Information Services