Can you explain me wait(),notify() and join() mtd with example. Is it compulsory to call wait on object reference.
Why wait() is included in object class and sleep,yield mtds in thread class.
It would be much better (for you) if you wrote an example and then asked questions in the forum about it. Assuming you even need to - you might find that just doing the example clears your confusion.
You have Sierra&Bates, they have some good threading examples in there. Use those and step through the code as it runs - this will make it very clear what is happening when.