From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,a889b920bf837aab X-Google-Attributes: gidfa528,public Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps89.POSTED!53ab2750!not-for-mail From: "telus" Newsgroups: comp.unix.tru64 References: <_e5yc.646$%i1.197@edtnps89> Subject: Re: how to get real time cpuload X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: Date: Thu, 10 Jun 2004 22:55:24 GMT NNTP-Posting-Host: 161.184.135.89 X-Trace: edtnps89 1086908124 161.184.135.89 (Thu, 10 Jun 2004 16:55:24 MDT) NNTP-Posting-Date: Thu, 10 Jun 2004 16:55:24 MDT Xref: g2news1.google.com comp.unix.tru64:109 I forgot to say it's digital Unix V4.0f Thanks, "telus" wrote in message news:_e5yc.646$%i1.197@edtnps89... > 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 > >