En Wed, 03 Dec 2008 02:29:32 -0200, Philip Semanchuk
<[EMAIL PROTECTED]> escribió:


On Dec 2, 2008, at 11:21 PM, [EMAIL PROTECTED] 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."? :)

To the OP: You may monitor CPU usage using the Tim Golden's wmi module [1]

py> import wmi
py> c = wmi.WMI()
py> for p in c.Win32_Processor():
....   print float(p.LoadPercentage)
....
9.0

[1] http://timgolden.me.uk/python/

--
Gabriel Genellina

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

Reply via email to