Chapter 4: threads and concurrency Flashcards
1
Q
many to one
A
Many user-level threads mapped to single kernel thread
One thread blocking causes all to block
2
Q
One-to-one
A
Each user-level thread maps to kernel thread
Creating a user-level thread creates a kernel thread
3
Q
many-to-many
A
- Allows many user level threads to be mapped to many
kernel threads - Allows the operating system to create a sufficient
number of kernel threads
4
Q
two-level model
A
- Similar to M:M, except that it allows a user thread to be
bound to kernel thread
5
Q
What is a thread
A
A unit of execution
* Execution within a process
* Faster to create and destroy than a process