Load monitoring

Hi,
I would like to know if there is a QNX API function or somewhere in /proc
where I can get the CPU load average.

I need to know the cpu load from within my program. I am using C.

THanks!

Raphael Assenat <raphael.assenat@8d.com> wrote:

Hi,
I would like to know if there is a QNX API function or somewhere in /proc
where I can get the CPU load average.

I need to know the cpu load from within my program. I am using C.

I’ve written stuff like this for some customers previously. You have to dig
into the /proc filesystem; it’s not rocket science, but it takes a bit of
perusal of the .h files (procfs.h I believe). Igor Kovalenko has a utility
called “spin” which I believe does something like what you’re looking to do
as well…

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.