Hi, I got a bit confused again. When a method calls anObject.wait(), the thread that called anObject.wait() released the monitor on anObject? Not anObject released the monitor on itself?
The thread that calls wait releases the lock/monitor associated with the object. It basically gives any other method or code block synchronized on the same object a chance to execute. Bosun
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley