Threads Flashcards
1
Q
A Process
A
is the abstraction used by the OS to manage resources and provide protection. A process defines an address space
2
Q
Thread
A
represents an abstract entity that executes a sequence of instructions
3
Q
Why do we use threads?
A
(1) to better represent the structure of tasks and (2) to improve performance
4
Q
What does each thread have and not have?
A
Each thread has its own stack and CPU registers but does not have its own address space
5
Q
Threads vs. Processes
A
Easier to communicate between threads because you can use shared resources and threads are lightweight and cheaper.