OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / pthread_setschedprio.3
1 .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH PTHREAD_SETSCHEDPRIO 3 2008\-11\-06 Linux "Linux Programmer's Manual"
32 .SH 名前
33 pthread_setschedprio \- スレッドのスケジューリング優先度を設定する
34 .SH 書式
35 .nf
36 \fB#include <pthread.h>\fP
37
38 \fBpthread_setschedprio(pthread_t \fP\fIthread\fP\fB, int \fP\fIprio\fP\fB);\fP
39 .sp
40 \fI\-pthread\fP でコンパイルしてリンクする。
41 .fi
42 .SH 説明
43 .\" FIXME . nptl/pthread_setschedprio.c has the following
44 .\"   /* If the thread should have higher priority because of some
45 .\"      PTHREAD_PRIO_PROTECT mutexes it holds, adjust the priority. */
46 .\" Eventually (perhaps after writing the mutexattr pages), we
47 .\" may want to add something on the topic to this page.
48 .\" nptl/pthread_setschedparam.c has a similar case.
49 \fBpthread_setschedprio\fP() 関数は、スレッド \fIthread\fP のスケジューリング
50 優先度に \fIprio\fP で指定された値を設定する
51 (一方、\fBpthread_setschedparam\fP(3) はスレッドのスケジューリングポリシー
52 と優先度の両方を変更する)。
53 .SH 返り値
54 成功すると、この関数は 0 を返す。
55 エラーの場合、0 以外のエラー番号を返す。
56 \fBpthread_setschedprio\fP() が失敗した場合、 \fIthread\fP の
57 スケジューリング優先度は変更されない。
58 .SH エラー
59 .TP 
60 \fBEINVAL\fP
61 指定されたスレッドのスケジューリングポリシーでは、 \fIprio\fP は無効である。
62 .TP 
63 \fBEPERM\fP
64 呼び出し側が、指定された優先度を設定するのに必要な特権を持っていない。
65 .TP 
66 \fBESRCH\fP
67 ID が \fIthread\fP のスレッドが見つからなかった。
68 .PP
69 POSIX.1\-2001 では、 \fBpthread_setschedprio\fP() に関して
70 エラー \fBENOTSUP\fP ("サポートされていない値を優先度
71 に設定しようとした") も追加で規定されている。
72 .SH バージョン
73 この関数は glibc バージョン 2.3.4 以降で利用できる。
74 .SH 準拠
75 POSIX.1\-2001.
76 .SH 注意
77 スレッドのスケジューリング優先度を変更するために必要な許可や
78 変更した場合の影響、および各スケジューリングポリシーで認められる優先度
79 の範囲の詳細については、 \fBsched_setscheduler\fP(2) を参照。
80 .SH 関連項目
81 .ad l
82 .nh
83 \fBgetrlimit\fP(2), \fBsched_get_priority_min\fP(2), \fBsched_setscheduler\fP(2),
84 \fBpthread_attr_init\fP(3), \fBpthread_attr_setinheritsched\fP(3),
85 \fBpthread_attr_setschedparam\fP(3), \fBpthread_attr_setschedpolicy\fP(3),
86 \fBpthread_create\fP(3), \fBpthread_self\fP(3), \fBpthread_setschedparam\fP(3),
87 \fBpthreads\fP(7)
88 .SH この文書について
89 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
90 である。プロジェクトの説明とバグ報告に関する情報は
91 http://www.kernel.org/doc/man\-pages/ に書かれている。