您必须调用pthread_join(从父线程)或pthread_detach,或者通过将其他属性传递给pthread_create来以分离状态创建线程。看到这里:http : //man7.org/linux/man-pages/man3/pthread_create.3.html