join()函数实际上起到了一个阻塞的作用。就是说阻塞当前线程,直到调用join函数的线程结束之后,当前线程才能继续往下进行。
c++11 thread多线程 thread()、join()、detach()