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!