I am writing a program that fuctions pretty much like the windows task manager. I am able to list all the running processes and get the pids.
The problem im having is when it comes to getting the cpu and memory usage of each process. I just cant find out how to get this information.
Could anyone provide me with a link or some code on how to get it?