how to find number of processors in python

Ganesan R rganesan at
Mon Jan 31 00:23:53 EST 2005

>>>>> "muttu" == muttu  <muttu2244 at> writes:

> hello everybody
> am writing a scanner using python which has to get the information for
> sun's dual processors, so could any one of you please tell me how to
> find the number of processors . is there any api's for this

You can run /usr/sbin/psrinfo with os.system() and parse the output.


More information about the Python-list mailing list