Martin Katz wrote:

> Python has very good documentation about portability. There are many things
> that really do not work the same on Windows and the Unix/Linux. Many calls
> are not shared.
> 
> I doubt that one can write a compatible system load meter between Windows
> and Linux/Unix. The definitions used by the OSs are not the same. 
> 
> You can come close. Under Windows, the standard Unix load can be
> approximated by the average processor queue length in the performance
> package. Multiple processors make this complex.

The numbers returned by getloadavg(3) on differing UNIX-ish systems
mean wildly different things on different variants.  Any particular
getloadavg() value is not portable between Linux, Solaris, AIX, etc.,
and not even really portable between FreeBSD, NetBSD, and OpenBSD,
even on the same platform.

Caveat programmor...

-- 
Wes Peters                                             Against stupidity
Senior Engineer                                      The gods themselves
NextGig, Inc.                                            Contend in vain
[EMAIL PROTECTED]                                              -- Schiller

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to