vault backup: 2025-03-08 18:16:57
This commit is contained in:
parent
60cff73ec8
commit
e0117166f1
1 changed files with 3 additions and 2 deletions
|
@ -90,9 +90,10 @@ unlock(i) :=
|
||||||
FLAG[i] <- 0
|
FLAG[i] <- 0
|
||||||
return
|
return
|
||||||
```
|
```
|
||||||
We say that:
|
We say that: $p_i$ is at level $h$ when it exits from the $h$-th wait $\to$ a process at level $h$ is at any level $<= h$
|
||||||
if $p_i$ is at level $h$ when it exits from the $h$-th wait $\to$ a process at level $h$ is at any level $<= h$
|
|
||||||
|
|
||||||
|
>[!info] What is the `wait` condition actually checking?
|
||||||
|
>In the wait condition we check that all other processes are at a lower level.
|
||||||
##### MUTEX proof
|
##### MUTEX proof
|
||||||
Lemma: for every $ℓ \in \{0,\dots,n-1\}$ , at most n-ℓ processes are at level ℓ, this implies MUTEX by taking ℓ = n-1
|
Lemma: for every $ℓ \in \{0,\dots,n-1\}$ , at most n-ℓ processes are at level ℓ, this implies MUTEX by taking ℓ = n-1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue