vault backup: 2025-03-03 10:06:24
This commit is contained in:
parent
7e23b3a8d5
commit
70c554d9fa
1 changed files with 11 additions and 1 deletions
|
@ -155,3 +155,13 @@ unlock(i) :=
|
||||||
FLAG[i] <- down
|
FLAG[i] <- down
|
||||||
return
|
return
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Features:**
|
||||||
|
- it satisfies MUTEX
|
||||||
|
- it satisfies bounded bypass, with bound = 1
|
||||||
|
- it requires 2 one-bit SRSW registers (the flags and 1 one-bit MRMW registers (AFTER_YOU)
|
||||||
|
- Each lock-unlock requires 5 accesses to the registers (4 for lock and 1 for unlock)
|
||||||
|
|
||||||
|
##### MUTEX proof
|
||||||
|
Assume p0 and p1 are simultaneously in the CS.
|
||||||
|
How has p0 entered its CS?
|
||||||
|
|
Loading…
Reference in a new issue