You are on page 1of 4

Create thread

Selected by scheduler
Running Exit
Ready Dying
Check time
yeild()
Event occured Wait an event

Blocked
Ready_list

Running

yeild() head tail


Create thread
Selected by scheduler

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

You might also like