title: Does notify/notifyall release the lock being held
body: <p>I am confused a bit about wait and notify/notifyAll.</p>
  
  <p>I know there is a lock for every java object. I know wait will release the lock for other thread. How about notify/notifyall? Does notify/notifyAll release the lock it is holding for other thread?</p>