Counting processors

k pur 4krishan at gmail.com
Tue Jul 26 10:50:55 EDT 2005


You can use

print os.sysconf("SC_NPROCESSORS_CONF")

works on Linux


krishan


Pauldoo wrote:
> Hi,
> Is a way in python to obtain the total number of processors present in
> the system?
> 
> os.platform doesn't seem to contain anything useful.




More information about the Python-list mailing list