What /proc proc file do I need?
I need to write a program that displays the amount of time that the CPU has spent in user mode, system mode, and idle. I also need the number of disksrequests on the system, the number of context switches that the kernel has performed, and the number of processes that have been created since the system was booted. I know there should be /proc files that I can get this info from, but I don't know which ones. Can anyone help?
|