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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The key attribute of a monitor

A

It can be accessed only by one thread at a time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly