File: pthread_setschedparam.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 (156 lines) | stat: -rw-r--r-- 3,773 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
.\"   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) 2003 Suzuki Takashi
.\"         all rights reserved.
.\" Translated Sun Jan  5 14:05:30 JST 2003
.\"         by Suzuki Takashi.
.\"
.\"WORD:    scheduling parameter    塼󥰥ѥ᡼
.\"WORD:    scheduling policy   塼󥰥ݥꥷ
.\"WORD:    non-realtime        ꥢ륿Ǥʤ
.\"WORD:    realtime            ꥢ륿
.\"WORD:    round-robin         饦ɥӥ
.\"WORD:    first-in first-out  ФFIFO
.\"
.\"
.TH PTHREAD_SETSCHEDPARAM 3 LinuxThreads


.SH "̾"
pthread_setschedparam, pthread_getschedparam \- åɤΥ塼󥰥ѥ᡼椹

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

.BI "int pthread_setschedparam(pthread_t " target_thread ", int " policy ", const struct sched_param *" param ");"

.BI "int pthread_getschedparam(pthread_t " target_thread ", int *" policy ", struct sched_param *" param ");"

.SH ""

.B "pthread_setschedparam"
ϥå
.I "target_thread"
Υ塼󥰥ѥ᡼
.I "policy"

.I "param"
Ǽͤѹ롣
.I "policy"

.B "SCHED_OTHER"
( ̾Ρꥢ륿Ǥʤ塼 ) 
.B "SCHED_RR"
( 饦ɥӥΥꥢ륿ॹ塼 ) 
.B "SCHED_FIFO"
( Ф (FIFO) Υꥢ륿ॹ塼 )
Τ줫ͤȤ롣
.I "param"
 2 ĤΥꥢ륿ݥꥷФ
塼ͥ٤ɽ
塼󥰥ݥꥷ˴ؤ뤵ʤ
.BR "sched_setpolicy" (2)
򻲾ȤΤȡ

ꥢ륿ॹ塼󥰥ݥꥷǤ
.B "SCHED_RR"

.B "SCHED_FIFO"
ϡѡ桼¤äץ˸¤äƻѤǤ롣

.B "pthread_getschedparam"
ϥå
.I "target_thread"
Υ塼󥰥ݥꥷ
塼󥰥ѥ᡼
.I "policy"
 
.I "param"
ǻؤΰ˳Ǽ롣

.SH "֤"
.B "pthread_setschedparam"

.B "pthread_getschedparam"
 0 ֤顼ʤ 0 Υ顼ɤ֤

.SH "顼"
顼ξ硢
.B "pthread_setschedparam"
ϼΤ褦ʥ顼ɤ֤:
.RS
.TP
.B "EINVAL"
.I "policy"

.BR "SCHED_OTHER" 
.BR "SCHED_RR" 
.B "SCHED_FIFO"
ΤǤʤ

.TP
.B "EINVAL"
ꤵ줿ݥꥷǤ
.I "param"
ǻꤵ줿ͥ٥ѥ᡼ͭǤϤʤ

.TP
.B "EPERM"
ƤӽФץϥѥ桼¤äƤʤ

.TP
.B "ESRCH"
å
.I "target_thread"
̵ޤϤǤ˽λƤ롣

.TP
.B "EFAULT"
.I "param"
ؤΰϥץΥֳΰǤ롣
.RE

顼ξ硢
.B "pthread_getschedparam"
ϼΤ褦ʥ顼ɤ֤:
.RS
.TP
.B "ESRCH"
å
.I "target_thread"
̵ޤϤǤ˽λƤ롣

.TP
.B "EFAULT"
.I "policy"
ޤ
.I "param"
ؤΰϥץΥֳΰǤ롣
.RE

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

.SH "Ϣ"
.BR "sched_setscheduler" (2),
.BR "sched_getscheduler" (2),
.BR "sched_getparam" (2),
.BR "pthread_attr_setschedpolicy" (3),
.BR "pthread_attr_setschedparam" (3).