Consider the following two-process synchronization solution.
The shared variable turn is initialized to zero. Which one of the following is TRUE?
GATE CSE 2016Operating System › Process Synchronization & ConcurrencyVerified
(C) This solution violates progress requirement.
Treat the shared variable turn as a token that decides which process may enter the critical section. Check the standard synchronization requirements: mutual exclusion, progress, and bounded waiting.
The algorithm enforces strict alternation using turn. It guarantees mutual exclusion and bounded waiting, but it violates progress because an uninterested process can prevent the other process from entering the critical section.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.