How can I be alerted when a process goes idle (that is, its CPU usage reaches zero for a sustained period on Windows 7?

2

How can I be alerted when a process goes idle (that is, its CPU usage reaches zero for a sustained period on Windows 7?

Essentially, I have a long running batch process that is pegging one of the cores. While I am able to work on other tasks, I sometime forget to check if it has finished. Is there a way I can be alerted when it is finished by monitoring the processes CPU usage?

fmark

Posted 2012-05-10T02:07:05.150

Reputation: 1 587

Can you run this process from a batch script, and then add a line that will throw up a dialog box> – soandos – 2012-07-05T16:42:22.093

@soandos Yep, but it has to work on Win 7. – fmark – 2012-07-07T09:17:45.683

and what is wrong with a .bat file or VB Script file (.vbs, just paste http://stackoverflow.com/questions/774175/how-can-i-open-a-message-box-in-a-windows-batch-file)

– soandos – 2012-07-08T01:42:51.330

Because I don't want to have to start the process from a batch file. These are long running processes that I interact with via a GUI, then wait for completion. – fmark – 2012-07-09T01:52:41.620

Answers

1

Have you thought of using SNMP to monitor CPU usage and send a trap when it goes idle; or whatever you want ?

Disco

Posted 2012-05-10T02:07:05.150

Reputation: 243