Quiz 3 Flashcards
A process can create multiple ____________________.
- Threads
- Operating systems
Multiple threads are quasi-parallel when there are ___________ processors than threads in the computer system.
Less
True or False:
A process may have multiple threads of control.
True
Multiple threads from ____________ may share address space.
the same process
Compared with processes, threads are ________________.
light-weight
True or False:
Both processes and threads can take advantage of multiple CPUs.
True
Each process has its own_______________________.
- Process number
- Global variables
A word processor needs to create multiple ___________________ to handle different activities such as user interactivity and periodical saves.
Threads
Each ___________ has its own stack.
thread
Each ____________ has its own program counter.
process
A thread is in ______________ state when it is waiting for I/O to complete.
blocked
When a thread is waiting for its turn to use CPU, the thread is in _________ state.
ready
When the time slice is used up by a thread, the thread goes to _____________ state.
ready
Race conditions may occur when _________________________.
multiple processes share data
A necessary condition for race conditions is _______________________.
at least one process needs to write
The program part that needs to access the shared data by multiple processes is called the _______________.
critical section
To address race conditions, __________________ is needed.
mutual exclusion
____________ describes a situation where two or more threads are blocked forever, waiting for each other.
deadlock