Retrieving OS parameters specific to processes
Hi,
I have to write an application that moniters a particular process, say
notepad.exe, and kill it if its CPU usage is > 90% for 15 sec or more.
The other instances of notepad should not be killed. we should kill
only that process which is consuming the CPU more.
I could not get the CPU usage pertaining to a particular process
id(pid)
suppose: there are 10 instances of notepad.exe, (pid ranging from 220
to 229), and the instance with pid=225 is consuming the maximum CPU, I
have to kill pid 225.
How can I calculate the CPU usage based on PID?
Please help.
Thanks,
Rao,
TCS.
.
Relevant Pages
- svchost
... update, then run virus scan. ... processes and kill the svchost.exe that has the highest ... This should free up your CPU usage quite a bit, ... (microsoft.public.win2000.registry) - Re: CPU usage in Windows task Manager program
... Kill it. ... > unaware of I opened windows task managed then clicked processes then % ... > usage so that the most CPU usage was at the top of list, ... > only other figures that appeared there were taskmgr.exe & system idle. ... (microsoft.public.windowsxp.help_and_support) - Re: CPU limits
... I'd much prefer to be able to set my script's CPU usage at - say - 75% ... setrlimit seems to allow you just to kill processes going beyond your ... N microseconds, then issues a kill CONT to your real process. ... (comp.lang.perl.misc) - DEFUNCT Processes
... chewing up CPU usage. ... We have tried killing these processes which comes back stating "Then ... kill: 1032: 0403-003 The specified process does not exist. ... (comp.unix.aix) - Outlook Express msimn.exe file
... I have notice my OE program hanging up, ... when I checked my task mgr, the msimn.exe file was consuming over 50% of my ... CPU usage when it is operating. ... (microsoft.public.internet.outlookexpress.mac) |
|