vault backup: 2025-04-06 16:58:00
This commit is contained in:
parent
6e87cd5b03
commit
09d45ed1c5
2 changed files with 4 additions and 5 deletions
|
@ -299,5 +299,4 @@ def end_write() :=
|
|||
W_MUTEX.up()
|
||||
return
|
||||
```
|
||||
This is prioritizing writers as if there are writers waiting, they will be waiting at `GLOB_MUTEX.down()`. This semaphore is upped before `PRIO_MUTEX` which is the one that blocks readers.
|
||||
But writers won't be able to writer until there are no readers, if they keep coming, they will block the writers as `GLOB_MUTEX` will never be upped.
|
||||
This is prioritizing writers as if there are writers waiting, they will be waiting at `GLOB_MUTEX.down()`. This semaphore is upped before `PRIO_MUTEX` which is the one that blocks readers.
|
Loading…
Add table
Add a link
Reference in a new issue