Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* table(TBL_SYSINFO,,,,) for many CPUs ?
@ 1998-06-17  4:00 Alexander Kogan
  0 siblings, 0 replies; only message in thread
From: Alexander Kogan @ 1998-06-17  4:00 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-06-17  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-17  4:00 table(TBL_SYSINFO,,,,) for many CPUs ? Alexander Kogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox