OEP

113

Title

Process priority support

Summary

Support multiple levels of process priority.

Owner

Fred Barnes <F.R.M.Barnes@kent.ac.uk>

Status

Accepted

Date-Accepted

2002-02-04

Keywords

vm etc scheduling

Support for 32 levels of process priority has been added to the occam system. These range from 0 (highest priority) to 31 (lowest priority). Most of the hard work related to priority handling is done in the run-time kernel. In occam, priority is handled using the following compiler pre-defines:

INT FUNCTION GETPRI ()
PROC SETPRI (VAL INT p)

PROC INCPRI ()
PROC DECPRI ()

These simply end up as calls to two new transputer instructions, "GETPRI" and "SETPRI". By default, the top-level occam process starts at the highest priority (0).

OEP/113 (last edited 2007-09-27 00:18:25 by ats1)