Professional Documents
Culture Documents
Alarm Clock
Alarm Clock
Selected by scheduler
Running Exit
Ready Dying
Check time
yeild()
Event occured Wait an event
Blocked
Ready_list
Running
Running Exit
Ready Dying
Check time
yeild()
wakeup() sleep()
Blocked
Ready_list
head tail
Running
sleep_list
Timer_sleep()
Insert the thread wake_up()
to sleep queue move the thread
from the sleep list
to the read list
tail head