As my understanding, if I am thread then:
When I call
notify()
/notifyAll()
it means means I am sending a signal to other thread which are waiting on this object monitor. Am I right?But What the
wait()
means?Am I sending signal to other thread to wait so that I can complete my work on it?
Or
I am declaring that I will wait, You do your work and tell me when you are done.?
I have a little concept about threads