Question: In Ricart-Agrawal's mutual exclusion algorithm, when a process finishes its CS (critical section) execution, it sends a Reply message to all queued processes. Consider the
In Ricart-Agrawal's mutual exclusion algorithm, when a process finishes its CS (critical section) execution, it sends a "Reply" message to all queued processes. Consider the following figure, where P4 sends Reply to P1,P2, and P3. (a) If multiple processes receive "Reply", can more than one processes potentially enter CS, violating the safety condition? (b) What can potentially go wrong if the P4 sends Reply only, to the top process in the queue, say to P1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
