Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows - find the number of processors ? 1

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

How can I find the number of processors ?
Did not find anything matching in Win32::OLE module.
Thanks

Long live king Moshiach !
 
Also, $ENV{NUMBER_OF_PROCESSORS} is set on my XP box. Don't know which other levels of Windows this works on, however...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::PerlDesignPatterns)[/small]
 
It's not a module, it's the Windows environment variable list put into a hash by perl. From the discussion that's been going on the Linux server forum recently, it would appear that Windows reports a HT processor as '2'

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::PerlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top