how to get "load average" using a program
Hi friends,
My system is Red hat linux 6.2, kernel 2.2.14. Through a C program, I want to get the "load average" that is shown by "top" command in its first line (load average: 0.19, 0.36, 0.41) Please help me if any system call is available to get this. Regards, -Sunil |
cat /proc/loadavg
|
..and in C that would be something like:
Code:
#include <stdio.h> |
All times are GMT -5. The time now is 09:20 PM. |