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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to