setrunqueue, remrunqueue - manipulate system run queue
setrunqueue(struct proc *p);
remrunqueue(struct proc *p);
The setrunqueue and remrunqueue functions manipulate the system queue of
runnable processes. The system scheduler uses this queue to find the
highest-priority process when a process switch occurs. These functions
are machine-dependent in order to permit efficient implementation of priority-based
The setrunqueue function places the given process on the system run
queue. It is an error to call setrunqueue with a process that is not
runnable or that is already on the system run queue or sleep queue.
The remrunqueue function removes the given process from the system run
queue. It is an error to call remrunqueue with a process that is not on
the system run queue.
BSD July 5, 2001 BSD
[ Back ]