I'm looking to automatically kill a process if it gets over a certain CPU percentage. I need to know what API function to call to get the CPU percent.
I already know how to get a list of processes.
I'm looking to automatically kill a process if it gets over a certain CPU percentage. I need to know what API function to call to get the CPU percent.
I already know how to get a list of processes.