vault backup: 2025-03-24 09:58:11

This commit is contained in:
Marco Realacci 2025-03-24 09:58:11 +01:00
parent 0856621409
commit 1cc08d5391
2 changed files with 13 additions and 3 deletions

View file

@ -51,9 +51,9 @@
"type": "pdf", "type": "pdf",
"state": { "state": {
"file": "Concurrent Systems/slides/class 7.pdf", "file": "Concurrent Systems/slides/class 7.pdf",
"page": 8, "page": 9,
"left": -23, "left": -23,
"top": 103, "top": 171,
"zoom": 0.680522565320665 "zoom": 0.680522565320665
}, },
"icon": "lucide-file-text", "icon": "lucide-file-text",

View file

@ -128,4 +128,14 @@ pop() :=
``` ```
REMARK: crashes do not compromise progress! REMARK: crashes do not compromise progress!
PROBLEM: unboundedness of REG is not realistic PROBLEM: unboundedness of REG is not realistic
### A Non-blocking Bounded Stack
Idea: every operation is started by the invoking process and finalized by the next process
`STACK[0...k]` : an array of registers that can be read or compare&setted
`STACK[i]` is actually a pair ⟨val , seq_numb⟩ initialized at ⟨⊥,0⟩
This is needed for the so called ABA problem with compare&set:
- A typical use of compare&set is
```stm```