Function Thread.join

Waits for the thread to terminate

void join();