Javatpoint Logo

Difference between join() and wait(), notify().

By: tanmay*** On: Tue Nov 22 20:43:54 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
i know the syntactical difference between them. But I want to know the working difference of them. Both do the same thing that when one thread dies immediately after that another thread starts.
join() joins the thread at the end of working thread and starts it after completion of working thread. And notify() notifies the waiting thread and starts it after completion of working thread.
So if join() is doing the same thing with less complexity (i.e without synchronization) then why do we need wait() notify()?

Thank You.
Up0Down