From: "telus" <fragrance_oo@yahoo.ca>
Subject: how to get real time cpuload
Date: Thu, 10 Jun 2004 22:27:06 GMT [thread overview]
Message-ID: <_e5yc.646$%i1.197@edtnps89> (raw)
Hi,
Is there a function we could call in C program to get the real-time snapshot
of cpu load or cpu load average of 5 second? The table(2) function could
only give us the 1, 5, 15 minutes average load. I should not fork a child
process to execute vmstat in the program in this case.
Thanks,
Catherine
next reply other threads:[~2004-06-10 22:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-10 22:27 telus [this message]
2004-06-10 22:55 ` how to get real time cpuload telus
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox