From: ndoulas@ccad.uiowa.edu (Nick Doulas)
Subject: Re: load average from C
Date: 2 May 1994 20:13:17 GMT [thread overview]
Message-ID: <2q3mst$81a@monet.ccad.uiowa.edu> (raw)
In-Reply-To: 2q36mf$cia@info.epfl.ch
In article <2q36mf$cia@info.epfl.ch>, monnier@di.epfl.ch (Stefan Monnier) writes:
> Is it possible to get the load average (or an approximation of it)
> from C, without calling system() ?
> (the more portable the better, but specific to osf/1 would be OK)
>
>
> Stefan
>
> PS: nntp1.5.11 sources read /dev/kmem but I don't have root access and
> /dev/kmem is protected.
Try using rstat() if its available on your system. It reads /dev/kmem for you.
Nick
ndoulas@ccad.uiowa.edu
next prev parent reply other threads:[~1994-05-02 20:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-05-02 15:36 load average from C Stefan Monnier
1994-05-02 20:13 ` Nick Doulas [this message]
1994-05-02 20:17 ` Roland Schemers
1994-05-07 11:21 ` Anthony Baxter
1994-05-09 14:35 ` Brian P. Minnebo
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