Possible Duplicate:
What’s the meaning for object’s monitor in java? Why use this word?
In the java project I'm studying, I see this code block:
// Continue once everybody is initialized
if(allReady) {
//AceFactory.log.fine("All ACEs are ready to start");
readyAces.notify();
}
}
And readyAces is a Map<String, Boolean> AceFactory.readyAces
variable.
I look up what notify() does, and I see that it does the following:
Wakes up a single thread that is waiting on this object's monitor. If any threads are waiting on this object, one of them is chosen to be awakened
But what is meant by "this object's monitor" ? thanks