226k views
0 votes
The code on the side is a software solution to the mutual exclusion problem for two processes. It shares two variables:

int turn;

Boolean blocked[2]

turn is initialized to 0 and blocked values are initialized to false. Find a counterexample that demonstrates that this solution is incorrect.

The code on the side is a software solution to the mutual exclusion problem for two-example-1

1 Answer

1 vote
uh.................................
User Pavel Bely
by
5.5k points