Re: how to find number of processors in python

From: Ganesan R (rganesan_at_myrealbox.com)
Date: 01/31/05


Date: 31 Jan 2005 10:53:53 +0530


>>>>> "muttu" == muttu <muttu2244@yahoo.com> 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.

Ganesan