vault backup: 2025-04-05 00:05:56
This commit is contained in:
parent
a99d09af0c
commit
47b74f3eec
4 changed files with 6 additions and 6 deletions
|
@ -140,7 +140,7 @@ Easy to generalize to k-MUTEX.
|
|||
|
||||
Peterson's algorithm cost $O(n^2)$
|
||||
A first way to reduce this cost is by using a tournament of MUTEX between pairs of processes:
|
||||

|
||||

|
||||
|
||||
Of course this is a binary tree, and the height of a binary tree is logaritmic to the number of leaves. A process then wins after $\lceil \log_{2}n \rceil$ competitions $\to O(\log n)$ cost.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue