Threads and Concurrency Flashcards
How is a process different from a thread
A process is unit of resource allocation and a unit of protection
How do threads fit in within the context of a process?
The thread is the basic unit which the OS allocates processor time
Threads < Process. Explain the benefits of threads this statement implies in terms of time.
It takes less time to create and terminate a thread. It takes less time to switch between threads and communicate between threads in the same process.
User level threads (ULTs) are managed by the user ___________ . Kernel level threads are managed by the kernel. _____ _________ does not require kernel mode privileges with ULTs.
Application, Thread switching.
The kernel can concurrently schedule _______ ______ from the same process on ________ __________ .
Multiple threads, multiple processors.
A mode switch by the kernel is the:
Transfer of control from one thread to another thread within the same process
A mode switch by the kernel as a result has:
Some overhead