[python-win32] wmi + pythonservice : multithreading issues

Thomas Herve therve at neocles.com
Tue Aug 17 09:40:33 CEST 2004


Aloys Baillet wrote:

> Hello,

Hi,

[...]

>  And I wanted to give the user a real-time info on the percent of CPU 
> used. The only way to go (I believe) is to use WMI.

I can help here, as there's another way using win32pdh library. And I'm 
(almost) sure it works in multithreading program. Although be careful as 
there's some subtle issues with pdh (localized names, need to fetch the 
counter 2 times to initialise it...).

-- 
Thomas Herve


More information about the Python-win32 mailing list