Reputation: 6209
What does thread monitor
mean? The first thing I think of is that the thread
is doing something within a synchronized
statement. Am I right?
Upvotes: 2
Views: 382
Reputation: 6158
In concurrent programming,
a monitor is an object or module intended to be used safely by more than one thread source
these are the thread
synchronization
mutual exclusion and cooperation
Mutual exclusion, which is supported in the JVM via object locks, that enables multiple threads to work independently on shared data without interfering with each other.
Cooperation, which is supported in the JVM via the wait
and notify
methods of Object
class , enables threads to work together towards a common goal.
Upvotes: 2