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

@ -62,7 +62,7 @@ function withdraw() {
While `read()` and `write()` may be considered as atomic, their sequential composition **is not**.
![](Concurrent%20Systems/notes/images/Pasted%20image%2020250303090135.png)
![](images/Pasted%20image%2020250303090135.png)
#### Mutual Exclusion (MUTEX)
Ensure that some parts of the code are executed as *atomic*.
@ -100,7 +100,7 @@ Every solution to a problem should satisfy at least:
**Both inclusions are strict:**
$$\text{Deadlock freedom} \not \implies \text{Starvation freedom}$$
![](Concurrent%20Systems/notes/images/Pasted%20image%2020250303093116.png)
![](images/Pasted%20image%2020250303093116.png)
*p1 is starving!*
$$\text{Starvation freedom} \not \implies \text{Bounded bypass}$$
Assume a $f$ and consider the scheduling above, where p2 wins $f(3)$ times and so does p3, then p1 looses (at least) $2f(3)$ times before winning.