The Complete SPRLIB & ANNLIB

TimerHandler

- a signal handler which can renice the process

SYNOPSIS

Sun workstations running SunOS:
void TimerHandler (sig, code, scp, addr)

Sun workstations running Solaris, HP-UX:
void TimerHandler ()

Silicon Graphics workstations:
void TimerHandler (sig, code, scp)

MIPS Stardent:
int TimerHandler ()

ARGUMENTS

int sig The signal number.
int code An additional (non-used) parameter.
struct sigcontext *scp A pointer to a signal context structure.
char *addr Additional address information.

RETURNS

Nothing.

FUNCTION

This is a replacement for the timer signal handler. This routine automatically increases the nice level of the process each time it is called; the steps taken are nice 0 - 8 - 12 - 19. Nice level 19 is only set when LIMIT_PRIORITY is not defined (see LIBRARY-flags). By setting the interval in which the timer is called to, for example, an hour, the nice level of the process is increased each hour. See set_auto_priority.

NOTE

For different architectures and operating systems, different functions are called. These functions are not available under Turbo-C / MS-DOS.

SEE ALSO

set_auto_priority, clear_auto_priority

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