Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: How to calculate the CPU usage

__/ [ spike1@xxxxxxxxxxxxx ] on Tuesday 05 September 2006 12:02 \__

> Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx> did eloquently scribble:
>> __/ [ spike1@xxxxxxxxxxxxx ] on Tuesday 05 September 2006 10:26 \__
> 
>>> FullMoon <adapaganesh@xxxxxxxxx> did eloquently scribble:
>>>> Please help me to calculate the CPU usage. It will be appriciable if u
>>>> explain me with an algorithm or a C program.
>>> 
>>> Do your own homework.
> 
>> Open the file /proc/loadavg . It's universal.
> 
> But his homework demands a C program.
> :)

Why not fopen() it then? It doesn't require root privileges...

I'm not sure about this, by the way... *smile*

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index