19. Mutual Exclusion Flashcards
1
Q
Race Condition
A
- An uncontrolled access by two or more concurrent processes to a shared variable where the final state of the data depends on the interleaving of instructions
2
Q
Critical Section
A
- The part of the code that changes the state of a shared resource
3
Q
Mutual Exclusion
A
- At most one process can be in the critical section of the code
4
Q
Isolation
A
- Processes not in the critical section nor trying to get into the critical section should not participate in the protocol used to guarantee mutual exclusion and should not be affected by it
5
Q
Progress
A
- The decision of which process may access the critical section cannot be postponed indefinitely
6
Q
Bounded Waiting
A
- After a process has made a request to enter its critical section, there is a bound on the number of times that other processes are allowed to enter their critical sections
7
Q
Flaw of Hardware Solution for Mutual Exclusion
A
- Not possible in multi-processing environments
- Violates isolation and bounded waiting in uni-processing environments
8
Q
Flaw of Taking Strict Turns
A
- Violates isolation
9
Q
Flaw of Signal Use of Critical Section
A
- Violates mutual exclusion due to a race condition
10
Q
Flaw of Signal Intention to Use Critical Section
A
- Can lead to livelock
11
Q
Flaw of Intermittently Signal Intention to Use Critical Section
A
- Can lead to livelock