vault backup: 2025-03-03 19:41:59

This commit is contained in:
Marco Realacci 2025-03-03 19:41:59 +01:00
parent f7e8b6d1ef
commit eed4d2d185

View file

@ -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
- 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