Peterson's Algorithm

Entry Section
other = 1-process;
interested[process]=TRUE;
turn=process;
while(interested[Other]==
TRUE && turn==process);
Critical Section
Exit Section
interested[process]=FALSE;


Entry Section
Crititcal section
Exit Section
Turn value =
Interested [Process 0] =
Interested [Process 1] =

Process in Waiting queue