Code Review
Compare your solutions
1. P1 then P2 -> x = 101
2. P2 then P1 -> x = 121
3. P1 reads, then P2, then P1 sets -> x = 100
4. P1 reads, then P2 reads, then P1 sets, then P2 sets -> x = 11
1. P1 then P2 -> x = 101
2. P2 then P1 -> x = 121
3. P1 reads, then P2, then P1 sets -> x = 100
4. P1 reads, then P2 reads, then P1 sets, then P2 sets -> x = 11