Unix Programming - CPU utilization

This is Interesting: Free IT 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-10, 5:44 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






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com