For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > May 2004 > CPU utilization









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 CPU utilization
Mikael Björk

2004-05-12, 9:08 pm

Hi all,

I'm working on a databsase project under UNIX written in C and need to
access some value for the CPU utilization (the time percentage of its time
the CPU is not idle). I understand that the kstat library is useful for this
purpose, but not exactly how.
The kstat chain contains the information I need, but how do I know which
name to look for in the chain and how to get the right data?

Tips would be greatly appreciated. Thanks in advance.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com