When the notify() method is called to signal other threads (waiting for this object's monitor),what is the state of calling thread? is it still running .... Thanx in advance Rashmi
Hi Rashmi notify() and notifyAll() are used after a thread has executed some synchronized code in order to allow waiting threads to take their turn at executing that code. So, a thread must be running when it calls notify() and there is nothing in the call which will cause the thread to halt its flow of execution. hth Simon
Don't MAKE me come back there with this tiny ad:
a bit of art, as a gift, the permaculture playing cards