vault backup: 2025-03-03 20:35:00
This commit is contained in:
parent
eed4d2d185
commit
b6a4a342cc
2 changed files with 10 additions and 27 deletions
27
.obsidian/workspace.json
vendored
27
.obsidian/workspace.json
vendored
|
@ -6,7 +6,6 @@
|
|||
{
|
||||
"id": "126da1a2d2b29212",
|
||||
"type": "tabs",
|
||||
"dimension": 42.335243553008596,
|
||||
"children": [
|
||||
{
|
||||
"id": "802d9ec58484849d",
|
||||
|
@ -23,29 +22,6 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "947ba599eb2fad7d",
|
||||
"type": "tabs",
|
||||
"dimension": 57.664756446991404,
|
||||
"children": [
|
||||
{
|
||||
"id": "092346c14956dad6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "pdf",
|
||||
"state": {
|
||||
"file": "Concurrent Systems/slides/class 1.pdf",
|
||||
"page": 15,
|
||||
"left": -23,
|
||||
"top": 101,
|
||||
"zoom": 0.6707244655581949
|
||||
},
|
||||
"icon": "lucide-file-text",
|
||||
"title": "class 1"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
|
@ -102,8 +78,7 @@
|
|||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 307.5,
|
||||
"collapsed": true
|
||||
"width": 307.5
|
||||
},
|
||||
"right": {
|
||||
"id": "bc4b945ded1926e3",
|
||||
|
|
|
@ -239,4 +239,12 @@ Induction (true for ℓ+1, to be proved for ℓ):
|
|||
|
||||
##### Peterson algorithm cost
|
||||
- $n$ MRSW registers of $\lceil \log_{2} n\rceil$ bits (FLAG)
|
||||
- $n-1$ MRMW
|
||||
- $n-1$ MRMW registers of $\lceil \log_{2}n \rceil$ bits (AFTER_YOU)
|
||||
- $(n-1)\times(n+2)$ accesses for locking and 1 access for unlocking
|
||||
|
||||
It satisfies MUTEX and starvation freedom. It does not satisfy bounded bypass:
|
||||
- consider 3 processes, one sleeping in its first wait, the others alternating in the CS
|
||||
- when the first process wakes up, it can pass to level 2 and eventually win
|
||||
- but the sleep can be arbitrary long and in the meanwhile the other two processes may have entered an unbounded number of CSs
|
||||
|
||||
Easy to generalize to k-MUTEX.
|
Loading…
Reference in a new issue