最近在使用C语言线程时需要用到<pthread.h>
下面时安装步骤
#安装 glibc-doc 包来查阅 glibc 的文档,它将包括 pthread 相关的文档
sudo apt-get install glibc-doc
sudo apt-get install manpages-posix manpages-posix-dev
安装成功后开源查看
man pthread_create # 查看 pthread_create() 的手册
man pthread # 查看关于 pthread 的概述
man 7 pthread # 查看 pthread 标准的相关文档
最后编译的时候 加上 -lpthread即可