OSDN Git Service

Update releases for LDP 3.68
[linuxjm/LDP_man-pages.git] / release / man3 / pthread_create.3
index 369ad98..303ef82 100644 (file)
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH PTHREAD_CREATE 3 2012\-08\-03 Linux "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 2012  Akihiro MOTOKI
+.\"         all rights reserved.
+.\" Translated 2012-05-04, Akihiro MOTOKI <amotoki@gmail.com>
+.\"
+.TH PTHREAD_CREATE 3 2014\-05\-28 Linux "Linux Programmer's Manual"
 .SH 名前
 pthread_create \- 新しいスレッドを作成する
 .SH 書式
@@ -95,12 +100,18 @@ CPU affinity マスク (\fBsched_setaffinity\fP(2) 参照) の
 .SH エラー
 .TP 
 \fBEAGAIN\fP
-別のスレッドを作成するのに十分なリソースがないか、システムで設定された
-スレッド数の上限に達していた。後者が起こるのは 2 つの場合がある。
-一つは、実ユーザ ID 当たりのプロセス数の上限である、\fBRLIMIT_NPROC\fP
-ソフトリソース上限 (\fBsetrlimit\fP(2) で設定できる) に達していた場合
-である。もう一つはカーネルのシステム全体のスレッド数の上限である
-\fI/proc/sys/kernel/threads\-max\fP が達していた場合である。
+Insufficient resources to create another thread.
+.TP 
+\fBEAGAIN\fP
+.\" NOTE! The following should match the description in fork(2)
+A system\-imposed limit on the number of threads was encountered.  There are
+a number of limits that may trigger this error: the \fBRLIMIT_NPROC\fP soft
+resource limit (set via \fBsetrlimit\fP(2)), which limits the number of
+processes and threads for a real user ID, was reached; the kernel's
+system\-wide limit on the number of processes threads,
+\fI/proc/sys/kernel/threads\-max\fP, was reached (see \fBproc\fP(5)); or the
+maximum number of PIDs, \fI/proc/sys/kernel/pid_max\fP, was reached (see
+\fBproc\fP(5)).
 .TP 
 \fBEINVAL\fP
 \fIattr\fP で指定された設定が不正である。
@@ -159,7 +170,7 @@ pthreads API の他のいろいろな関数の使用例を示している。
 .in +4n
 .nf
 $\fB ulimit \-s\fP
-8192            # The stack size limit is 8 MB (0x80000 bytes)
+8192            # The stack size limit is 8 MB (0x800000 bytes)
 $\fB ./a.out hola salut servus\fP
 Thread 1: top of stack near 0xb7dd03b8; argv_string=hola
 Thread 2: top of stack near 0xb75cf3b8; argv_string=salut
@@ -321,6 +332,6 @@ main(int argc, char *argv[])
 \fBpthread_getattr_np\fP(3), \fBpthread_join\fP(3), \fBpthread_self\fP(3),
 \fBpthreads\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.68 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。