High-Level Synchronization Flashcards
1
Q
Monitors
A
- Provide simplified paradigm for some synchronization problems
- Abstract Data Type – like a structure or class – with functions and private data
2
Q
The key attribute of a monitor
A
It can be accessed only by one thread at a time
3
Q
Methods of a monitor
A
All the methods of a monitor are executed with mutual exclusion. So at most one thread can execute a method of the monitor at the same time.
4
Q
MONITOR WITH CONDITION VARIABLES
A
Condition variables are used when:
– a thread is running in a monitor.
– encounters a condition that is not satisfied, which can only be satisfied by another thread
5
Q
A