阅读背景:

WMI进程监视使用太多的CPU!有更好的方法吗?

来源:互联网 

I need to watch when certain processes are started or stopped on a Windows machine. I'm currently tapped into the WMI system and querying it every 5 seconds, but this causes a CPU spike every 5 seconds because WMI is WMI. Is there a better way of doing this? I could just make a list of running processes and attach an Exited event to them through the System.Diagnostics Namespace, but there is no Event Handler for creation.I need to watch when certain processes are star




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: