vault backup: 2025-04-05 00:07:51

This commit is contained in:
Marco Realacci 2025-04-05 00:07:51 +02:00
parent 47b74f3eec
commit 1c82ee3d9d
11 changed files with 30 additions and 30 deletions

View file

@ -49,9 +49,9 @@ unlock(i) :=
##### MUTEX proof
How can pi enter its CS?
![](Concurrent%20Systems/notes/images/Pasted%20image%2020250304084537.png)
![](images/Pasted%20image%2020250304084537.png)
![](Concurrent%20Systems/notes/images/Pasted%20image%2020250304084901.png)
![](images/Pasted%20image%2020250304084901.png)
(*must finished before nel senso che $p_i$ deve aspettare $p_j$*)
##### Deadlock freedom
Let $p_i$ invoke lock
@ -72,6 +72,6 @@ Let $p_i$ invoke lock
- In the second wait Y = ⊥: but then there exists a $p_h$ that eventually enters its CS -> good
- In the ∀j.wait FLAG[j]=down: this wait cannot block a process forever
![](Concurrent%20Systems/notes/images/Pasted%20image%2020250304090219.png)
![](images/Pasted%20image%2020250304090219.png)
esercizio: prova che NON soddisfa starvation freedom