how to find number of processors in python

Christopher De Vries devries at idolstarastronomer.com
Mon Jan 31 10:49:29 EST 2005


"/usr/sbin/psrinfo -p" will print the number of physical processors on the
system, though it does not indocate if they are on- or off-line. You could also
write an extension which gets processor information using the sys/processor
library. Example code is available in the "p_online" man page. 

Chris



More information about the Python-list mailing list