vault backup: 2025-03-03 19:41:59
This commit is contained in:
parent
f7e8b6d1ef
commit
eed4d2d185
1 changed files with 9 additions and 1 deletions
|
@ -231,4 +231,12 @@ Induction (true for ℓ+1, to be proved for ℓ):
|
||||||
- If some $p_{y}$ will eventually set $A\_Y[ℓ+1]$ to $y$, then $p_x$ will eventually exit from its wait and pass to level ℓ+1
|
- If some $p_{y}$ will eventually set $A\_Y[ℓ+1]$ to $y$, then $p_x$ will eventually exit from its wait and pass to level ℓ+1
|
||||||
|
|
||||||
- Otherwise, let $G = \{p_{i}: F[i] \geq ℓ+1\}$ and $L=\{p_{i}:F[i]<ℓ+1\}$
|
- Otherwise, let $G = \{p_{i}: F[i] \geq ℓ+1\}$ and $L=\{p_{i}:F[i]<ℓ+1\}$
|
||||||
- if $p \in L$, it will never enter its ℓ+1-th loop (as it would write A_Y[ℓ+1])
|
- if $p \in L$, it will never enter its ℓ+1-th loop (as it would write $A_Y[ℓ+1]$ and it will unblock $p_x$, but we are assuming that it is blocked)
|
||||||
|
- all $p \in G$ will eventually win (by induction) and move to L
|
||||||
|
- $\to$ eventually, $p_{x}$ will be the only one in its ℓ+1-th loop, with all the other processes at level <ℓ+1
|
||||||
|
- $\to$ $p_{x}$ will eventually pass to level ℓ+1 and win (by induction)
|
||||||
|
|
||||||
|
|
||||||
|
##### Peterson algorithm cost
|
||||||
|
- $n$ MRSW registers of $\lceil \log_{2} n\rceil$ bits (FLAG)
|
||||||
|
- $n-1$ MRMW
|
Loading…
Reference in a new issue