Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daedalus committed Jan 8, 2024
1 parent 2d42521 commit 44cb73a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2proc_pmutex.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def enter_region(process):
other = 1 - process
interested[process] = True
turn = process
while turn == turn and interested[other] == True:
while turn == process and interested[other] == True:
k += 1
# if (k % 10000 == 0):
# print "process wait",process
Expand Down

0 comments on commit 44cb73a

Please sign in to comment.