Unix Programming - sys/processor.h sys/loadavg.h in linux?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > February 2004 > sys/processor.h sys/loadavg.h in linux?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author sys/processor.h sys/loadavg.h in linux?
Shea Martin

2004-02-14, 9:33 am

I have a program I wrote for Solaris. I am trying to port the program to linux.
One of the problems I am having is attaining hardware information on the machine.

Using sys/processor.h on solaris, I am able to num cpu's and clock speed.
Using sys/loadavg.h, I am able to get the load avg u/s/i.
I can still get mem, and free mem from sysconf, that is ok.

I would rather not parse through /proc/cpuinfo!

TIA,

~S
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com