First page Back Continue Last page Overview Graphics
How to sleep (1)
Must declare a wait queue
A wait queue will be used to store the list of threads waiting for an event.
Static queue declaration
useful to declare as a global variable
Or dynamic queue declaration
useful to embed the wait queue inside another data structure