shared: int turn = 0; // whose turn is it to use the C.S. Process 0 | Process 1 -------------------------+-------------------------- while (turn == 1) | while (turn == 0) pause(); | pause(); C.S. | C.S. turn = 1; | turn = 0; |