vault backup: 2025-03-04 08:44:45
This commit is contained in:
parent
9f90efacac
commit
1cdd7d5981
1 changed files with 9 additions and 2 deletions
|
@ -40,5 +40,12 @@ lock(i) :=
|
|||
else FLAG[i] <- down
|
||||
∀j.wait FLAG[j] = down
|
||||
if Y = i then return
|
||||
else wait Y = 1
|
||||
goto *
|
||||
else wait Y = ⊥
|
||||
goto *
|
||||
|
||||
unlock(i) :=
|
||||
Y <- ⊥
|
||||
FLAG[i] <- down
|
||||
return
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue