|
Home > Archive > Unix administration > May 2004 > Accessing CPU utilization in UNIX
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 |
Accessing CPU utilization in UNIX
|
|
| Mikael Björk 2004-05-11, 5:40 pm |
| Hi all,
I'm working on a real-time database 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.
| |
| Nicholas Bachmann 2004-05-12, 6:58 pm |
| Mikael Björk wrote:
> Hi all,
>
> I'm working on a real-time database 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?
Which Unix, what version?
--
+ Regards, +
+ Nick +
+ +
+ My email address is real +
| |
| Mikael Björk 2004-05-13, 4:34 am |
| I'm using Solaris 5.8.
"Nicholas Bachmann" <usenet@not-real.org> wrote in message
news:h69u7c.5r4.ln@bachmann.ath.cx...
> Mikael Björk wrote:
need[vbcol=seagreen]
for[vbcol=seagreen]
>
> Which Unix, what version?
>
> --
> + Regards, +
> + Nick +
> + +
> + My email address is real +
>
|
|
|
|
|