Example i have 2 thread: t1 and t2 and my code is
t1.start();
t2.start();
t1.join();
t2.join();
I already known the concept of join method. But in this case i don’t know the mechanism of join method. Which thread will wait for other complete ?
Thanks.
The thread(main, implicit) which starts
t1andt2waits fort1andt2to complete, respectively.