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. | 0 |