This discussion is archived
2 Replies Latest reply: May 21, 2007 5:28 AM by 807606 RSS

Thread does not get notify

807606 Newbie
Currently Being Moderated
Hello,
I start 10 Threads.
If a thread must wait till recourse are valid then I call wait() method.
If any recourse are valid another synchronized method calls notify() method to wake up the thread.

I have the problem, that some the treads are in wait status and these will never wake up again!

This happens exactly, when I choose for example 10 Threads and 5 recourses, or 8 Threads and 4 resources, etc..

What could be the problem, that some threads do not get notify, even when I use netofyAll() method, the situation is the same!