main(){
...
t1.start();
t1.join();// here main thread is calling join() on t1 thread, so main thread will wait until t1 thread completes its work.
...
}
Original question is
Which of the method causes the currently executing thread object to temporarily pause and allow other threads to execute???
sleep()
wait()
notify()
yield()
join().