![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| c programming in linux | convenientstore | High Level Programming | 6 | 04-07-2008 03:30 PM |
| Linux Programming in JAvA | srikumar_cs | UNIX for Dummies Questions & Answers | 1 | 06-18-2007 05:40 PM |
| Need Help Of Linux Programming | luckyvishwa | Linux | 1 | 01-01-2007 06:47 AM |
| Programming C in Linux | wizkid | High Level Programming | 2 | 05-21-2001 08:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi friends!
I am new be in Linux system programing. Can you help me to get running processes statistics (pid, uid, %cpu, %mem, pri, ni) without using any commands like TOP, PS. Can you tell me any system call available to get %cpu only or %mem only? Even i include the vmstat.c file to achieve memory statistics by calling those function within vmstat.c file.When i compile my application program it shows an error that No such file or Directory My requirement is that i want to achieve running processes statistics from my application program. When i compile my application program, the program must give the result like TOP command. ![]() |
|
||||
|
Start by learning about the /proc filesystem. It has process information.
proc(5): process info pseudo-filesystem - Linux man page See /proc/[number]/stat particularly This sounds like homework. The forums do not allow homework |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|