Question
In Peterson’s solution, what does a process’s flag indicate?
Select an option. Your answer will be checked instantly.
Correct Answer: B. That the process intends to enter its critical section
Explanation:
Each flag records whether the corresponding process is interested in entering the critical section.
The other process checks this intent together with the turn value.
Leave a Reply