OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / release / man2 / sched_get_priority_max.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) Tom Bjorkholm & Markus Kuhn, 1996
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" USA.
24 .\"
25 .\" 1996-04-01 Tom Bjorkholm <tomb@mydata.se>
26 .\"            First version written
27 .\" 1996-04-10 Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de>
28 .\"            revision
29 .\"
30 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
31 .\"         all rights reserved.
32 .\" Translated 1997-02-23, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\" Updated 2006-04-14, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.29
34 .\"
35 .\"WORD:        static                  ÀÅŪ
36 .\"WORD:        priority                ¥×¥é¥¤¥ª¥ê¥Æ¥£
37 .\"WORD:        scheduling              ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°
38 .\"WORD:        algorithm               ¥¢¥ë¥´¥ê¥º¥à
39 .\"WORD:        process                 ¥×¥í¥»¥¹
40 .\"WORD:        portable                °Ü¿¢À­¤Î¤¢¤ë
41 .\"WORD:        policy                  Êý¿Ë
42 .\"
43 .TH SCHED_GET_PRIORITY_MAX 2 2006-03-23 "Linux" "Linux Programmer's Manual"
44 .SH Ì¾Á°
45 sched_get_priority_max, sched_get_priority_min  \- ÀÅŪ¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎÈϰϤò¼èÆÀ¤¹¤ë
46 .SH ½ñ¼°
47 .B #include <sched.h>
48 .sp
49 .BI "int sched_get_priority_max(int " policy );
50 .sp
51 .BI "int sched_get_priority_min(int " policy );
52 .SH ÀâÌÀ
53 .BR sched_get_priority_max ()
54 ¤Ï\fIpolicy\fP ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¤Î¥¢¥ë¥´¥ê¥º¥à¤Ç
55 »ÈÍѤµ¤ì¤ë¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎºÇÂçÃͤòÊÖ¤¹¡£
56 .BR sched_get_priority_min ()
57 ¤Ï\fIpolicy\fP ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¤Î¥¢¥ë¥´¥ê¥º¥à¤Ç
58 »ÈÍѤµ¤ì¤ë¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎºÇ¾®ÃͤòÊÖ¤¹¡£
59 ¥µ¥Ý¡¼¥È¤µ¤ì¤ë \fIpolicy\fP ¤ÎÃͤÏ
60 .BR SCHED_FIFO ¡¢
61 .BR SCHED_RR ¡¢
62 .BR SCHED_OTHER ¡¢
63 .B SCHED_BATCH
64 ¤Ç¤¢¤ë¡£¤³¤ì¤é¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Êý¿Ë¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï
65 .BR sched_setscheduler (2)
66 ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¡£
67
68 ¿ôÃÍŪ¤ËÂ礭¤Ê¥×¥é¥¤¥ª¥ê¥Æ¥£Ãͤò»ý¤Ä¥×¥í¥»¥¹¤Ï¾®¤µ¤Ê
69 ¥×¥é¥¤¥ª¥ê¥Æ¥£Ãͤò»ý¤Ä¥×¥í¥»¥¹¤è¤êÁ°¤Ë¥¹¥±¥¸¥å¡¼¥ë¤µ¤ì¤ë¡£
70 ¤³¤Î¤¿¤á
71 .BR sched_get_priority_max ()
72 ¤¬ÊÖ¤¹ÃͤÏ
73 .BR sched_get_priority_min ()
74 ¤¬ÊÖ¤¹Ãͤè¤ê¤âÂ礭¤¤¡£
75
76 Linux ¤Ç¤Ï \fBSCHED_FIFO\fP ¤È \fBSCHED_RR\fP ¤Ç¤Ï 1 ¤«¤é 99 ¤ÎÈϰϤÎ
77 ÀÅŪ¥×¥é¥¤¥ª¥ê¥Æ¥£¡¼¤ò»ý¤Á¡¢\fBSCHED_OTHER\fP ¤È \fBSCHED_BATCH\fP ¤Ç¤Ï
78 ¥×¥é¥¤¥ª¥ê¥Æ¥£¤È¤·¤Æ 0 ¤ò»ý¤Ä¡£
79 ¤½¤ì¤¾¤ì¤ÎÊý¿Ë¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¡¦¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎÈϰϤÏ
80 Êѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¡£
81
82 ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¡¦¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎÈϰϤϾ¤Î POSIX ¥·¥¹¥Æ¥à¤È
83 °Û¤Ê¤Ã¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤¡£¤½¤ì¤Ç¡¢°Ü¿¢À­(portable)¤Î¤¢¤ë
84 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï²¾ÁÛŪ¤ÊÈϰϤòÍѤ¤
85 .BR sched_get_priority_max ()
86 ¤È
87 .BR sched_get_priority_min ()
88 ¤ÇÍ¿¤¨¤é¤ì¤¿´Ö³Ö¤Ë¥Þ¥Ã¥×¤·¤Æ»ÈÍѤ¹¤ë¤³¤È¤Ï¤¤¤¤¹Í¤¨¤Ç¤¢¤ë¡£
89 POSIX.1-2001 ¤Ç¤Ï \fBSCHED_FIFO\fP ¤È \fBSCHED_RR\fP ¤Ë¤ª¤±¤ë
90 ºÇÂçÃͤȺǾ®Ãͤδֳ֤ò¾¯¤Ê¤¯¤È¤â 32 ¤Ë¤¹¤ë¤³¤È¤òÍ׵ᤷ¤Æ¤¤¤ë¡£
91
92 POSIX ¥·¥¹¥Æ¥à¤Ç¤Ï
93 .BR sched_get_priority_max ()
94 ¤È
95 .BR sched_get_priority_min ()
96 ¤Ï \fI<unistd.h>\fP ¤Ë
97 .B _POSIX_PRIORITY_SCHEDULING
98 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß»ÈÍѲÄǽ¤Ç¤¢¤ë¡£
99 .SH ÊÖ¤êÃÍ
100 À®¸ù¤·¤¿¾ì¹ç¤Ï
101 .BR sched_get_priority_max ()
102 ¤È
103 .BR sched_get_priority_min ()
104 ¤Ï»ØÄꤵ¤ì¤¿¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Êý¿Ë¤Î¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎºÇÂçÃÍ/ºÇ¾®ÃͤòÊÖ¤¹¡£
105 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
106 .I errno
107 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
108 .SH ¥¨¥é¡¼
109 .TP
110 .B EINVAL
111 °ú¤­¿ô \fIpolicy\fP ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Êý¿Ë¤È°ìÃפ·¤Ê¤¤¡£
112 .SH ½àµò
113 POSIX.1-2001.
114 .SH ´ØÏ¢¹àÌÜ
115 .BR sched_getaffinity (2),
116 .BR sched_getparam (2)
117 .BR sched_getscheduler (2),
118 .BR sched_setaffinity (2),
119 .BR sched_setparam (2),
120 .BR sched_setscheduler (2),
121 .PP
122 .I Programming for the real world \- POSIX.4
123 by Bill O. Gallmeister, O'Reilly & Associates, Inc., ISBN 1-56592-074-0