Joining Thread
join()suspends the current thread until another one finishes. c++ - What does std::thread.join() do? - Stack Overflow
join()suspends the current thread until another one finishes. c++ - What does std::thread.join() do? - Stack Overflow