-
Threads...
I have a class that has two synchronized methods, one public, one private... the public one is called from another class, and this method starts another thread, and then calls the wait method. The new thread then uses a loop to keep checking for certain information, when it finds it, it relenquishes all locks on itself by calling the private synchronized method, which inturn calls the notifyAll() method.
That being said, heres my problem: If i try to call the public synchronized method a second time, after the first run-through is completed, java freezes up, as if in an eternal loop. Why?