How do you release an object which is locked in a synchronized block

Showing Answers 1 - 2 of 2 Answers

kishore

  • Oct 27th, 2005
 

by using notify() method we can release the lock 

  Was this answer useful?  Yes

prafulla

  • Nov 2nd, 2005
 

by using notify() or notifyAll() method we can release the lock.But notify() method sometimes notify unwanted thread.So in some situation notify() method is avoidable.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions