On Sunday 27 Mar 2005 10:29 am, Sajid ali Baig wrote:
hi,
Hope this may help. Have a look at /proc/stat Find user(Tu),nice(Tn),sys(Ts) and ideal(Ti) usage in jiffies for some small time duration(T in jiffies). %usage Total = (Tu+Tn+Ts+Ti)*100 / T Same should be true for each process /proc/PID/stat which ps uses.
Warm Regards
Balwinder Singh
Trusted Machines http://www.trustedmachines.com
hi, I want to find the average percentage CPU utilisation in C.can any one help me out. regards