How do I watch for a LoadPercentage change event using the Win32_Processor class?
import wmi
c= wmi.WMI()
x = [cpu.LoadPercentage for cpu in c.Win32_Processor()]
Where should the watch for() method be applied so that I can know if the CPU usage has dropped to less than say 80%?
Thanks. Siva
I'm not sure what you mean by for() method, but you can just put that in a loop: