Results 1 to 8 of 8
hi i want to make a process manager in linux which shows all current processes its users,applications running them,cpu usage and can kill them...hw shld i proceed??plzzz help...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-29-2008 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
process manager in linux??
hi i want to make a process manager in linux which shows all current processes its users,applications running them,cpu usage and can kill them...hw shld i proceed??plzzz help
- 03-29-2008 #2
Install htop.
Which distro are you using?It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-29-2008 #3
There are already many apps that do that. Top, htop, ksysguard etc. I personally prefer ksysguard and htop.
- 03-30-2008 #4Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
i knw them but i wnt 2 make a s/w myself which does all dis so in dat context hw shld i proceed languages i knw c,c++ and python
- 04-03-2008 #5Just Joined!
- Join Date
- Sep 2007
- Location
- Lafayette, IN
- Posts
- 83
If you want to write your own, the easiest way to do that would probably be to take the source code of one you like and re-write it to act how you want.
- 04-03-2008 #6
If you want to write your own from scratch (as some sort of exercise or whatever), the problem reduces to "how can I figure out what processes are active, and information about them?".
The answer, dear reader, is the proc filesystem. Under /proc you will find lots of information for every process: there are a bunch of numbered directory: each of these represents a process (the number is the PID). In this directory, you can find information about memory and CPU usage, amongst other things.
So I suggest you read up on proc. It has a man page, and I'm sure there are many guides online.
- 04-03-2008 #7Just Joined!
- Join Date
- Dec 2006
- Posts
- 4
thnx but wld it betta to use system calls or shell commands in the code???
- 04-04-2008 #8Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513


Reply With Quote

