From: Alexander Kogan <kogan@ptc.com>
Subject: table(TBL_SYSINFO,,,,) for many CPUs ?
Date: 1998/06/17 [thread overview]
Message-ID: <35882D7F.643EF10B@ptc.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
Hello,
I'm trying to get system time information (user time, system,
wait and nice)
for each CPU in my box.
I guess I can use table() or getsysinfo(). I know how to get it
from table() but only for one CPU:
struct tbl_sysinfo sibuf;
if ( table(TBL_SYSINFO, 0, &sibuf, 1, sizeof(struct
tbl_sysinfo) ) < 0 )
{
perror("TBL_SYSINFO"); return;
}
sibuf.si_user;
sibuf.si_nice;
sibuf.si_sys;
sibuf.si_idle;
Does anybody know how to get it for many CPUs?
Thanks,
[-- Attachment #2: Card for Kogan, Alexander --]
[-- Type: text/x-vcard, Size: 410 bytes --]
begin: vcard
fn: Alexander Kogan
n: Kogan;Alexander
org: Parametric Technology Corporation
adr: 128 Technology Drive;;;Waltham;MA;02154;USA
email;internet: kogan@ptc.com
title: Senior Software Engineer
tel;work: (781)398-5172
tel;fax: (881)398-5454
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard
reply other threads:[~1998-06-17 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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