Maksim Dmitriev
Maksim Dmitriev

Reputation: 6209

Thread status is “monitor” in Eclipse DDMS

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?

enter image description here

Upvotes: 2

Views: 382

Answers (1)

subodh
subodh

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

Related Questions