SCHED(9)SCHED(9)
NAME
anyhigher, anyready, hzsched, procpriority, procrestore, procsave, scheddump, schedinit, sched, yield \– scheduler interactions
SYNOPSIS
int anyhigher(void) int anyready(void) void hzsched(void) void procpriority(Proc *p, int priority, int fixed) void procrestore(Proc *p) void procsave(Proc *p) void procwired(Proc *p, int machno) void scheddump(void) void schedinit(void) void sched(void) void yield(void) enum { ... Npriq = 20, /* scheduler priority levels */ PriNormal = 10, /* base for normal processes */ PriKproc = 13, /* base for kernel processes */ PriRoot = 13, /* base for root processes */ };
DESCRIPTION
These functions define the priority process scheduler’s interface.
Processes are scheduled strictly by priority, and processor affinity.
When possible, processes with no affinity will be rescheduled on the
same processor. Within a priority, scheduling is round–robin.
Long–running processes of the same priority are preempted and
rescheduled. But cpu use (or lack thereof) may adjust the priority up
or down, unless it has been explicitly fixed. Kernel processes are
started with
SOURCE
unhandled troff command .sp