next up previous
Next: Implementation Up: Time Management Previous: Preemption Events

Wakeup Events

A user process schedules a wakeup event when it asks the operating system to suspend it for a period specified by the process. A wakeup event is scheduled to occur at the end of the period. (Why are wakeup events useful?)

In Xinu, a process schedules wakeup events by calling either sleep10(n) or sleep(n). The parameter of the former specifies time in one tenths of seconds, while the parameter of the latter specifies it in seconds. Thus the former can be used to schedule delays of upto 2**15 - 1 tenths of seconds (3276.7 seconds) and the latter 32767 seconds.


Prasun Dewan
Tue Feb 12 13:32:55 EST 2002