posted 16 years ago
Hi, I have a question of wait() and notifyAll(). I understand all the threads need in the loop need to be in a synchronized block to lock the object. Now I have a small code using singleton to be a lock, but it doesn't work properly when invoke notifyAll().
While running the code, the waiting threads are not able to be wake up. What's the problem? Please help.
Thanks
SCJP SE 6.0, SCWCD J2EE 5