GB Unit3 Mutual Exclusion
GB Unit3 Mutual Exclusion
WHAT IS MUTUAL
EXCLUSION?
Shortcomings
⮚ Single point of failure. No fault tolerance
⮚ Confusion between No-reply and permission
denied
⮚ Performance bottleneck of single coordinator in a
large system
PERFORMANCE PARAMETERS
2. It guarantees no starvation.
3. M = K = √N works best.
TOKEN-BASED ALGORITHMS
? Correctness:
Only one process has the token at any instant, so
only one process can actually get to the
resource.
? Problems:
⚫ If the token is ever lost, it must be regenerated.
In fact, detecting that it is lost is difficult, since
the amount of time between successive
appearances of the token on the network is
unbounded.
⚫ The algorithm also runs into trouble if a process
crashes.
SUZUKI–KASAMI’S
BROADCAST ALGORITHM
? Broadcast a request for the token
? Process with the token sends it to the
requestor if it does not need it •
? Issues:
? – Current versus outdated requests
– Determining sites with pending requests
– Deciding which site to give the token to
? The request message: REQUEST(i, n) :
request message from node i for its for its
kth critical section execution critical section
execution
Performance Parameters