Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: Machine Load in C

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi everyone!

Please help me if you can. Anybody knows how to get the load of a machine (the cpu % used or something like this) through a call or somehow else in C???

Thanks! And sorry for my poor english (I'm Spanish).

Bye!

Pedro
 
Yes!
You can get a lot of usefull information from the /proc
filesystem.
Look at the file /proc/loadavg:
0.93 0.69 0.47 2/76 21425
-------------------------
Good Luck! /Siberian ALF/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top