load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




vishist mandapaka wrote:
> Hi,
>   The granularity of my access should be around once every 5 sec. But one
> min, I am unable to read that file through a program. I want to read the
> load of the system through a C program..

Why not? open("/proc/loadavg",O_RDONLY) should work.
then read a few bytes. You migh want to make it non-blocking.

	-Thomas






[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux