Threads Flashcards
What are the two types of threads?
- User level
- Kernel level
Which thread executes for a time of only one process?
User level
Which thread is managed by runtime library routines linked into each application so that it does not require kernel intervention.
User level
What are the advantages of User Level threads?
- Thread operations do not have to cross protection boundary.
- Parameter do not need to be copied.
What are the disadvantages of User Level threads?
- Kernel implements a single policy or pays overhead of managing multiple policies.
- User-level threads that issue blocking calls to the kernel will block an entire process.
Which thread avoids the system integrations problems, directly scheduling each application’s threads onto physical process.
Kernel level
What are the advantages of Kernel Level threads?
- “Correct” kernel level support.
- Can take advantage of multiple CPUs.
What are the disadvantages of Kernel Level threads?
- They are expensive.
- They do not understand application behavior.
What is multiplexing?
Many-to-Many Implementation
What thread offers good perfomance, but does not handle I/O well?
User Level
True or False:
Threads are needed for parallel applications.
True
What notifies user level schedulers of changes in kernel scheduling decisions?
Scheduler Activations
What are the uses for scheduler activations?
- Provides kernel space for threads that block in the kernel.
- Creates one activation for each virtual processor
- Uses upcall to notify kernel of scheduling events.