Process Management Flashcards
(8 cards)
What is starvation
When a process never gets access the the resource it requires
What are deadlocks
A situation where two or more processes each are waiting for resources held by others
What are race conditions
2 or more processes competing for a shared resource
Result varies according to order of process execution
How do we avoid race conditions
Using critical sections
Both processes stop in critical sections (where shared resource is needed). And process the critical sections together
What is mutual exclusion
Only one process must be allowed to be in a critical section at one time
What is disabling interrupts
Disabling interrupts before a process enters its critical section
This guarantees that the process can use this shared resource
What is a disadvantage to disabling interrupts
The process may never enable interrupts therefore crashing the computer
What strict alternation
When an integer variable keeps track of whose turn it is to enter the critical region