This course is run at the The University of Nottingham within the School of Computer Science & IT. The course is run by Graham Kendall (EMAIL : gxk@cs.nott.ac.uk)
In this section, instead of a process doing a busy waiting we will look at
procedures that send the process to sleep. In reality, it is placed in a blocked
state. The important point is that it is not using the CPU by sitting in a tight
loop.
To implement a sleep and wakeup system we need access to two system calls (SLEEP
and WAKEUP). These can be implemented in a number of ways. One method is for
SLEEP to simply block the calling process and for WAKEUP to have one parameter;
that is the process it has to wakeup.
An alternative is for both calls to have one parameter, this being a memory address which is used to match the SLEEP and WAKEUP calls.
Last Page | Back to Main Index | Next Page |
Last Updated : 13/01/2002