File: pthread_create.3

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (100 lines) | stat: -rw-r--r-- 2,989 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.\"   Copyright (C) 1996-1999 Free Software Foundation, Inc.
.\"
.\"   Permission is granted to make and distribute verbatim copies of
.\" this manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\"   Permission is granted to copy and distribute modified versions of
.\" this manual under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\"   Permission is granted to copy and distribute translations of this
.\" manual into another language, under the above conditions for modified
.\" versions, except that this permission notice may be stated in a
.\" translation approved by the Foundation.
.\"
.\" Copyright (C) 1996 Xavier Leroy.
.\" 
.\" Japanese Version Copyright (C) 1999 GOTO, Masanori
.\"         all rights reserved.
.\" Translated on Tue Dec 14 21:30:57 JST 1999
.\"         by GOTO, Masanori <gotom@debian.or.jp>.
.\" Modified Sun Feb  2 00:36:21 JST 2003
.\"         by Suzuki Takashi.
.\"
.\"WORD:    thread              å
.\"WORD:    create              
.\"WORD:    attribute           °
.\"WORD:    joinable            ήǽ
.\"WORD:    detach              ǥå
.\"WORD:    real-time           ꥢ륿
.\"WORD:    identifier          ̻
.\"WORD:    error code          顼
.TH PTHREAD_CREATE 3 LinuxThreads

.SH "̾"
pthread_create \- åɤ

.SH ""
.B #include <pthread.h>

.BI "int pthread_create(pthread_t * " thread ", pthread_attr_t * " attr ", void * (*" start_routine ")(void *), void * " arg ");"

.SH ""
.B "pthread_create"
ϸƤӽФåɤ¹ԤƼ¹Ԥ롢楹åɤ롣
åɤϡ
.I "arg"
 1 Ȥ
.I "start_routine"
Ȥؿˤʤ롣
åɤϡ
.BR "pthread_exit" (3)
ƤӽФȤˤäŪ˽λ뤫
ؿ
.I "start_routine"
֤뤳ȤǰŪ˽λ롣Ԥξϡ
.I "start_routine"
νλɤȤ֤̤Ȥ
.BR "pthread_exit" (3)
ƤӽФȤ


.I "attr"
ˤϡοåɤŬѤ륹å°ꤹ롣
å°˴ؤ봰ʥꥹȤ
.BR "pthread_attr_init" (3)
˸Ĥ뤳ȤǤ롣

.I "attr"
Ϥޤ
.B "NULL"
Ȥ뤳ȤǤλϥǥեȤ°Ѥ:
åɤϹήǽ (Ĥޤǥåʤ)
ǥե (Ĥޤꥢ륿ǤϤʤ) Υ塼ˤˤʤ롣

.SH "֤"
ȿåɤμ̻Ҥ

.I "thread"
λؤΰسǼ졢 0 ֤롣
顼ξ硢 0 Υ顼ɤ֤롣

.SH "顼"
.TP
.B "EAGAIN"
åɤΥץ뤿νʬʥƥ񸻤ʤ
.TP
.B "EAGAIN"
.B "PTHREAD_THREADS_MAX"
¿Υåɤ˥ƥ֤Ǥ롣

.SH ""
Xavier Leroy <Xavier.Leroy@inria.fr>

.SH "Ϣ"
.BR "pthread_exit" (3),
.BR "pthread_join" (3),
.BR "pthread_detach" (3),
.BR "pthread_attr_init" (3).