|
-
Dec 16th, 2003, 02:10 AM
#1
Thread Starter
Addicted Member
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?
To protect time is to protect everything...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|