Peterson's Algorithm Simulation

Entry Section
Critical Section
Exit Section

turn:   flag[0]:   flag[1]: