ECE344H1 Lecture Notes - Lecture 6: Interrupt Handler, Context Switch, Address Space

45 views4 pages

Document Summary

Kernel and user threads: thread scheduling. Scheduler decides which thread to run based on. Blocked - thread is waiting for input. Ready - thread is ready to run (not blocked or running) Exited - thread has exited but not been destroyed. When a thread calls the following three thread scheduling api functions, scheduler chooses a *ready* thread to run. Thread_yield: current thread yields cpu, runs another, e. g. - thread_sleep: current thread blocks for an event, e. g. , io request. Thread_wakeup: wake up a thread blocked on an event, e. g. , io reply thread_create thread_destroy. | ready |

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents