& ldquo; Нет ручного ввода для pthread & rdquo; - не удалось найти справочную страницу по имени

Я новичок в Ubuntu, хотел написать код для блока чтения-записи в операционной системе, но когда я запустил команду man pthread, она выдала мне ошибку , нет ручного ввода для pthread . Что можно сделать, чтобы решить проблему?

18
задан 1 July 2014 в 21:25

2 ответа

Сначала установите эти man-страницы:

sudo apt-get install manpages-posix manpages-posix-dev

, а затем:

man pthreads

Теперь это должно работать.

0
ответ дан 1 July 2014 в 21:25

Хорошо, значит, страницы руководства, которую вы ищете, нет:

$ man pthread
No manual entry for pthread

Хмм ... давайте посмотрим на что-то похожее!
Мы выберем man option -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

Теперь, похоже, мы его нашли!

0
ответ дан 1 July 2014 в 21:25

Другие вопросы по тегам:

Похожие вопросы: