1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (C) Tom Bjorkholm & Markus Kuhn, 1996
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.
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.
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.
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,
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>
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
36 .\"WORD: priority ¥×¥é¥¤¥ª¥ê¥Æ¥£
37 .\"WORD: scheduling ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°
38 .\"WORD: algorithm ¥¢¥ë¥´¥ê¥º¥à
39 .\"WORD: process ¥×¥í¥»¥¹
40 .\"WORD: portable °Ü¿¢À¤Î¤¢¤ë
43 .TH SCHED_GET_PRIORITY_MAX 2 2006-03-23 "Linux" "Linux Programmer's Manual"
45 sched_get_priority_max, sched_get_priority_min \- ÀÅŪ¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎÈϰϤò¼èÆÀ¤¹¤ë
49 .BI "int sched_get_priority_max(int " policy );
51 .BI "int sched_get_priority_min(int " policy );
53 .BR sched_get_priority_max ()
54 ¤Ï\fIpolicy\fP ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¤Î¥¢¥ë¥´¥ê¥º¥à¤Ç
55 »ÈÍѤµ¤ì¤ë¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎºÇÂçÃͤòÊÖ¤¹¡£
56 .BR sched_get_priority_min ()
57 ¤Ï\fIpolicy\fP ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¤Î¥¢¥ë¥´¥ê¥º¥à¤Ç
58 »ÈÍѤµ¤ì¤ë¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎºÇ¾®ÃͤòÊÖ¤¹¡£
59 ¥µ¥Ý¡¼¥È¤µ¤ì¤ë \fIpolicy\fP ¤ÎÃͤÏ
64 ¤Ç¤¢¤ë¡£¤³¤ì¤é¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Êý¿Ë¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï
65 .BR sched_setscheduler (2)
68 ¿ôÃÍŪ¤ËÂ礤ʥץ饤¥ª¥ê¥Æ¥£Ãͤò»ý¤Ä¥×¥í¥»¥¹¤Ï¾®¤µ¤Ê
69 ¥×¥é¥¤¥ª¥ê¥Æ¥£Ãͤò»ý¤Ä¥×¥í¥»¥¹¤è¤êÁ°¤Ë¥¹¥±¥¸¥å¡¼¥ë¤µ¤ì¤ë¡£
71 .BR sched_get_priority_max ()
73 .BR sched_get_priority_min ()
74 ¤¬ÊÖ¤¹Ãͤè¤ê¤âÂ礤¤¡£
76 Linux ¤Ç¤Ï \fBSCHED_FIFO\fP ¤È \fBSCHED_RR\fP ¤Ç¤Ï 1 ¤«¤é 99 ¤ÎÈϰϤÎ
77 ÀÅŪ¥×¥é¥¤¥ª¥ê¥Æ¥£¡¼¤ò»ý¤Á¡¢\fBSCHED_OTHER\fP ¤È \fBSCHED_BATCH\fP ¤Ç¤Ï
78 ¥×¥é¥¤¥ª¥ê¥Æ¥£¤È¤·¤Æ 0 ¤ò»ý¤Ä¡£
79 ¤½¤ì¤¾¤ì¤ÎÊý¿Ë¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¡¦¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎÈϰϤÏ
80 Êѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¡£
82 ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°¡¦¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎÈϰϤϾ¤Î POSIX ¥·¥¹¥Æ¥à¤È
83 °Û¤Ê¤Ã¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤¡£¤½¤ì¤Ç¡¢°Ü¿¢À(portable)¤Î¤¢¤ë
84 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï²¾ÁÛŪ¤ÊÈϰϤòÍѤ¤
85 .BR sched_get_priority_max ()
87 .BR sched_get_priority_min ()
88 ¤ÇÍ¿¤¨¤é¤ì¤¿´Ö³Ö¤Ë¥Þ¥Ã¥×¤·¤Æ»ÈÍѤ¹¤ë¤³¤È¤Ï¤¤¤¤¹Í¤¨¤Ç¤¢¤ë¡£
89 POSIX.1-2001 ¤Ç¤Ï \fBSCHED_FIFO\fP ¤È \fBSCHED_RR\fP ¤Ë¤ª¤±¤ë
90 ºÇÂçÃͤȺǾ®Ãͤδֳ֤ò¾¯¤Ê¤¯¤È¤â 32 ¤Ë¤¹¤ë¤³¤È¤òÍ׵ᤷ¤Æ¤¤¤ë¡£
93 .BR sched_get_priority_max ()
95 .BR sched_get_priority_min ()
96 ¤Ï \fI<unistd.h>\fP ¤Ë
97 .B _POSIX_PRIORITY_SCHEDULING
98 ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß»ÈÍѲÄǽ¤Ç¤¢¤ë¡£
101 .BR sched_get_priority_max ()
103 .BR sched_get_priority_min ()
104 ¤Ï»ØÄꤵ¤ì¤¿¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Êý¿Ë¤Î¥×¥é¥¤¥ª¥ê¥Æ¥£¤ÎºÇÂçÃÍ/ºÇ¾®ÃͤòÊÖ¤¹¡£
105 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
111 °ú¤¿ô \fIpolicy\fP ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Êý¿Ë¤È°ìÃפ·¤Ê¤¤¡£
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),
122 .I Programming for the real world \- POSIX.4
123 by Bill O. Gallmeister, O'Reilly & Associates, Inc., ISBN 1-56592-074-0