If u type top command in terminal u will get like this..........
For eg.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31253 user1 16 0 2112m 2.1g 1764 R 37.0 53.2 0:39.89 firefox
31249 root 16 0 2112m 2.1g 1764 R 15.5 53.2 0:38.29 gtk-gnash
31244 veer 16 0 2112m 2.1g 1764 R 13.6 53.2 0:40.05 metacity
31250 user1 16 0 2112m...
User Profile
Collapse
-
How to find OS information in Linux like Top?
-
How to calculate CPU and Memory usage of a process in Linux
Hi everyone,
I don't know how to calculate cpu and memory usage information of a process.I know this information is located in /proc/pid/... but where.......... ..because i want to display this information in C++ without using "gliptop" library........ ... Please help me ........even if possible i need "top" command source code in Linux...
Any help is greatly appreciated.... ... -
/proc information in linux
Hi everyone,
I want to write a code in C++ so i want to knw information about /proc in liux . where if we give the command "top" in terminal it will show all currently running information like this if i want to display these information using C++ code .so i want to know where these files located..mainly i want to know where each processes cpu and memory info. is located........ .......if anyone knows please help... -
how to Open Sub Directory to access a file in linux
Hi everyone
I want to open the Directory like this using C++ in linux
eg : /proc/1/status
where proc and 1 is a directory and status is a file,which i want to access(i.e)this file i have to copy to an string to access some information.... ..............c an anyone help
No activity results to display
Show More