“没有手动输入pthread” – 无法按名称找到手册页
我是Ubuntu的新手,想在操作系统中为读写器块编码,但是当我解雇命令man pthread
它给了我一个错误, 没有手动输入pthread 。 可以做些什么来解决这个问题?
首先安装这些联机帮助页:
sudo apt-get install manpages-posix manpages-posix-dev
然后:
man pthreads
现在它应该工作。
好的,所以你找的手册页不存在:
$ man pthread No manual entry for pthread
嗯……我们来寻找类似的东西吧!
我们将为此选择-k
:
$ man -k pthread pthread_attr_destroy (3) - initialize and destroy thread attributes object pthread_attr_getaffinity_np (3) - set/get CPU affinity attribute in thread attributes object pthread_attr_getdetachstate (3) - set/get detach state attribute in thread attributes object pthread_attr_getguardsize (3) - set/get guard size attribute in thread attributes object [... 47 more lines ...] pthread_timedjoin_np (3) - try to join with a terminated thread pthread_tryjoin_np (3) - try to join with a terminated thread pthread_yield (3) - yield the processor pthreads (7) - POSIX threads vfs_aio_pthread (8) - implement async I/O in Samba vfs using a pthread pool
好的…一些相关的东西……哦! pthreads
看起来很有趣!
$ man pthreads|head -n 12 PTHREADS(7) Linux Programmer's Manual PTHREADS(7) NAME pthreads - POSIX threads DESCRIPTION POSIX.1 specifies a set of interfaces (functions, header files) for threaded programming commonly known as POSIX threads, or Pthreads. A single process can contain multiple threads, all of which are executing the same program. These
现在,看起来我们找到了它!