vault backup: 2025-04-01 19:21:56
This commit is contained in:
parent
72db12339d
commit
eaacbecc03
1 changed files with 3 additions and 1 deletions
|
@ -150,7 +150,9 @@ lock(i) :=
|
||||||
FLAG[i] <- up
|
FLAG[i] <- up
|
||||||
max_turn <- max{MY_TURN[1],...,MY_TURN[n]}
|
max_turn <- max{MY_TURN[1],...,MY_TURN[n]}
|
||||||
if max_turn > 2n then
|
if max_turn > 2n then
|
||||||
|
MY_TURN[i] = max_turn - 2n + 1
|
||||||
|
else
|
||||||
|
MY_TURN[i] = max_turn + 1 | secondo me basta già così
|
||||||
|
|
||||||
|
|
||||||
FLAG[i] <- down
|
FLAG[i] <- down
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue