参考1 https://computing.llnl.gov/tutorials/pthreads/ 参考2 http://man7.org/linux/man-pages/man7/pthreads.7.html join int pthread_join(pthread_t, void**);阻塞调用线程,直至指定pthread_t线程终止 在同一个线程中重复调用join会导致错误 在创建线程的时候可以指定要创建的线程是否joinable,如果是,则可以join,否则(即detached)不…