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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Critical Section

A
  • The part of the code that changes the state of a shared resource
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Mutual Exclusion

A
  • At most one process can be in the critical section of the code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Progress

A
  • The decision of which process may access the critical section cannot be postponed indefinitely
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Flaw of Taking Strict Turns

A
  • Violates isolation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Flaw of Signal Use of Critical Section

A
  • Violates mutual exclusion due to a race condition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Flaw of Signal Intention to Use Critical Section

A
  • Can lead to livelock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Flaw of Intermittently Signal Intention to Use Critical Section

A
  • Can lead to livelock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly