From: Usman Muzaffar <usman@thynne.psych.nwux.edu>
Subject: Re: determining load average
Date: 1999/07/15 [thread overview]
Message-ID: <378E75EC.5493938@thynne.psych.nwux.edu> (raw)
In-Reply-To: 378BE579.CB9E6404@swin.edu.au
Paul Bourke wrote:
>
> How does one getting the machine load? I'm about to do some parallel
> animations on a Dec farm (UNIX) and would like to check the load from
> my C source and not use that machine if the load is too high. Sure
> I can system("uptime") and parse the result....yuk. Surely there's
> a cleaner "standard" way?
As I understand it, things about process information are more or
less guaranteed to be *different* between different operating systems,
which is why there is no POSIXish way to get at process information
at the lower level. I'm no fan of system() in C programs either, but
I'd guess in this case, uptime is the best way to go.
But if anyone knows differently, please, let's hear it.
-usman
next prev parent reply other threads:[~1999-07-15 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-14 4:00 determining load average Paul Bourke
1999-07-14 4:00 ` Hal Murray
1999-07-15 4:00 ` Usman Muzaffar [this message]
1999-07-16 4:00 ` Joerg Czeranski
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