Best way to run multiple Python processes without overloading CPU or disk i/o

Philip Semanchuk philip at semanchuk.com
Mon Dec 8 16:05:52 CET 2008


On Dec 8, 2008, at 2:48 AM, Gabriel Genellina wrote:

> En Wed, 03 Dec 2008 02:29:32 -0200, Philip Semanchuk
> <philip at semanchuk.com> escribió:
>
>>
>> On Dec 2, 2008, at 11:21 PM, python at bdurham.com wrote:
>>
>>> Is there a cross-platform way to launch multiple Python processes
>>> and monitor CPU usage
>>
>> os.getloadavg() might be useful. It certainly works on *nix, don't  
>> know about Windows. The documentation doesn't mention any platform  
>> limitations.
>
> ....apart from saying "Availability: Unix."? :)

Which just goes to show that Python is improving all the time. That's  
a fix that's present in the 2.6 documentation. I have 2.5 installed,  
and "Availability: Unix" is not in that doc:
http://www.python.org/doc/2.5/lib/os-path.html#l2h-2791






More information about the Python-list mailing list