vault backup: 2025-03-17 09:24:23
This commit is contained in:
parent
61629042e1
commit
ff8c0d0409
2 changed files with 41 additions and 11 deletions
10
Concurrent Systems/notes/4b -.md
Normal file
10
Concurrent Systems/notes/4b -.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
### Monitors
|
||||
Semaphores are hard to use in practice because quite low level Monitors provide an easier definition of concurrent objects at the level of Prog. Lang.
|
||||
|
||||
It guarantees mutual exclusion.
|
||||
|
||||
Inter-process synchronization is done through *conditions*, which are objects that provide the following operations:
|
||||
- ***wait*:** the invoking process suspends, enters into the condition's queue, and releases the mutex on the monitor
|
||||
- ***signal*:** if no process is in the condition's queue, the nothing happens. Otherwise
|
||||
- it reactivates the first suspended process, suspends the signaling process that however has a priority to re-enter the monitor (*Hoare semantics*)
|
||||
-
|
Loading…
Add table
Add a link
Reference in a new issue