The Complete SPRLIB & ANNLIB

warning_system_load

- get system load averages and warn the user if necessary

SYNOPSIS

int warning_system_load (threshold)

ARGUMENTS

float threshold If the load is higher than threshold, a warning will be given.

RETURNS

TRUE if an error occured, FALSE if not.

FUNCTION

The routine checks the load average over the last minute by opening a pipe to the uptime shell command. If the load is larger than threshold, a warning is printed to stderr advising the user to kill his batch job and find another machine.

NOTE

This function is called by sprinit. These functions are not available under Turbo-C / MS-DOS.

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998