vault backup: 2025-03-10 19:27:05

This commit is contained in:
Marco Realacci 2025-03-10 19:27:05 +01:00
parent ecdf724d86
commit e206c6bcf7

View file

@ -264,7 +264,7 @@ It looks like I can experience at most $2n-1$ other critical sections, but it is
- all processes invoke lock simultaneously - all processes invoke lock simultaneously
- $p_{n}$ has to wait all other processes to complete their CSs - $p_{n}$ has to wait all other processes to complete their CSs
- when $p_{n-1}$ completes its CS, its new DATE will be $n+(n-1)+1=2n$ -> RESET - when $p_{n-1}$ completes its CS, its new DATE will be $n+(n-1)+1=2n$ -> RESET
- now all $p_{1}\dots p_{n-1}$ invoke lock again and complete their CSs (after that $p_i$ completes its CS, now it has `DATE[i] <- n+i`) - now all $p_{1}\dots p_{n-1}$ invoke lock again and complete their CSs (after that $p_i$ completes its CS, now it has `DATE[i] <- n+i`, because as everyone invoked lock after the RESET, max date was `n`)
- so $p_n$ has to wait n-1 CSs for the reset, and another n-1 CSs before entering again - so $p_n$ has to wait n-1 CSs for the reset, and another n-1 CSs before entering again