Software solution 1
Process 0
...
while turn != 0 do
nothing;
// busy waiting
< Critical Section>
turn = 1;
...
Problems : Strict alternation, Busy Waiting
Process 1
...
while turn != 1 do
nothing;
// busy waiting
< Critical Section>
turn = 0;
...
Previous slide
Next slide
Back to first slide
View graphic version