The functions in thread class themselves define clearly when and where they should be used and wait() and notify() are no exceptions. Also see notifyAll()
All for one and one for all!
Joined: Jan 26, 2006
Thanks for your input. Let me move little ahead with my initial question What I have is a collection of Thread objects In certain point of time i need them to execute and some of them to suspend and resume, But here the issue is condition for handling these operations are gathered from different threads, Means using one thread calling start another for wait and notify So that java throwing execption complaining this