Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jul 2007
whats the difference between ps and top?
ps -eo pid,time
for a particular pid
Time shows different time...
why is that?
whats the difference between those two?
both are total amount of cpu time right?
top time:->no. of cpu seconds that have been used by the process since it was started
ps time:->total amount of cpu time used(usr +sys)
when i tried
time ps -eo pid,time,cmd
6378 00:00:00 ps -eo pid,time,cmd
time taken by that command is
00:00:00 in ps table
then it should be 0.004+0.008=0.012
so it shud atleast show 00:00:01 ??!!
PS:i'm a linux newbie...
am i thinking correct??
can someone explain why that is so??
thanks a lot in advance
whereas it showed ::