From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ca073c5bb81135dc,start X-Google-Attributes: gidfee84,public Path: g2news1.google.com!postnews1.google.com!not-for-mail From: fragrance_oo@yahoo.ca (Catherine) Newsgroups: comp.unix.osf.osf1 Subject: how to get snapshot of CPU load Date: 10 Jun 2004 09:48:28 -0700 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 161.184.135.89 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1086886108 24171 127.0.0.1 (10 Jun 2004 16:48:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 10 Jun 2004 16:48:28 +0000 (UTC) Xref: g2news1.google.com comp.unix.osf.osf1:6 Hi, We could get the CPU load infomation by vmstat command, and CPU load average of 1, 5, 15 minutes by table(2) in C program. Is there a function we could call to get the snapshot of real-time CPU load in C program? Thanks a lot! Catherine