Ubuntu —— 库安装 :: pthread

多线程编程用到pthread:

  • 安装
sudo apt-get install glibc-doc

安装以后,发现还是有很多函数不全,只有一小部分pthread的函数,安装manpages-posix-dev就可以了。

sudo apt-get install manpages-posix-dev