OSDN Git Service

5c91d0cd6f86af60f9f4972401bf88bbc234939d
[linuxjm/LDP_man-pages.git] / release / man2 / nice.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 1992 Drew Eckhardt <drew@cs.colorado.edu>, March 28, 1992
4 .\"
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 .\"
25 .\" Modified by Michael Haardt <michael@moria.de>
26 .\" Modified 1993-07-24 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 1996-11-04 by Eric S. Raymond <esr@thyrsus.com>
28 .\" Modified 2001-06-04 by aeb
29 .\" Modified 2004-05-27 by Michael Kerrisk <mtk.manpages@gmail.com>
30 .\"
31 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
32 .\"         all rights reserved.
33 .\" Translated 1997-06-26, SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
34 .\" Updated 2001-06-25, Kentaro Shirakata <argrath@ub32.org>
35 .\" Updated 2005-09-03, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
36 .\" Updated 2005-10-07, Akihiro MOTOKI
37 .\"
38 .TH NICE 2 2007-07-26 "Linux" "Linux Programmer's Manual"
39 .SH Ì¾Á°
40 nice \- ¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤òÊѹ¹¤¹¤ë
41 .SH ½ñ¼°
42 .B #include <unistd.h>
43 .sp
44 .BI "int nice(int " inc );
45 .sp
46 .in -4n
47 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
48 .RB ( feature_test_macros (7)
49 »²¾È):
50 .in
51 .sp
52 .BR nice ():
53 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE
54 .SH ÀâÌÀ
55 .BR nice ()
56 ¤Ï
57 .I inc
58 ¤ÎÃͤò
59 .B nice
60 ¤ò¸Æ¤ó¤À¥×¥í¥»¥¹¤Î nice Ãͤ˲䨤ë
61 (nice Ãͤ¬Â礭¤¤¿ôÃͤۤÉÄ㤤ͥÀèÅÙ¤òɽ¤¹)¡£
62 Éé¤Î¿ô¤ò»ØÄꤹ¤ë¡¢¤Ä¤Þ¤ê¡¢°ÊÁ°¤è¤ê¤âÍ¥ÀèÅÙ¤ò¾å¤²¤ë¤È¤¤¤¦»ØÄ꤬¤Ç¤­¤ë¤Î¤Ï
63 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼¤À¤±¤Ç¤¢¤ë¡£
64 nice ÃͤÎÈϰϤˤĤ¤¤Æ¤Ï
65 .BR getpriority (2)
66 ¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë¡£
67 .SH ÊÖ¤êÃÍ
68 À®¸ù¤·¤¿¾ì¹ç¡¢¿·¤·¤¤ nice Ãͤ¬ÊÖ¤ë (⤷¡¢²¼µ­¤Î¡ÖÃí°Õ¡×¤ò»²¾È)¡£
69 ¼ºÇÔ¤·¤¿¾ì¹ç \-1 ¤¬Ê֤ꡢ
70 .I errno
71 ¤¬¥¨¥é¡¼¤ÎÆâÍƤ˽¾¤Ã¤ÆÀßÄꤵ¤ì¤ë¡£
72 .SH ¥¨¥é¡¼
73 .TP
74 .B EPERM
75 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¡¼°Ê³°¤¬
76 .I inc
77 ¤ËÉé¤Î¿ôÃͤò»ØÄꤷ¤ÆÍ¥ÀèÅÙ¤ò¾å¤²¤è¤¦¤È¤·¤¿¡£
78 ¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤¬
79 .I inc
80 ¤ËÉé¤Î¿ôÃͤò»ØÄꤷ¤ÆÍ¥ÀèÅÙ¤ò¾å¤²¤è¤¦¤È¤·¤¿¤¬¡¢
81 ½½Ê¬¤Ê¸¢¸Â¤ò»ý¤Ã¤Æ¤¤¤Ê¤«¤Ã¤¿¡£
82 Linux ¤Ç¤Ï
83 .B CAP_SYS_NICE
84 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤¬É¬ÍפǤ¢¤ë¡£
85 .RB ( setrlimit (2)
86 ¤Î¥ê¥½¡¼¥¹¾å¸Â
87 .B RLIMIT_NICE
88 ¤Ë´Ø¤¹¤ëµÄÏÀ¤â»²¾È¤Î¤³¤È)¡£
89 .SH ½àµò
90 SVr4, 4.3BSD, POSIX.1-2001.
91 ¤·¤«¤·¡¢Linux ¤È (2.2.4¤è¤ê¸Å¤¤) (g)libc ¤Ç¤ÏÊÖ¤êÃͤÏɸ½à¤È°Û¤Ê¤ë¡£
92 ¾ÜºÙ¤Ï°Ê²¼¤ò»²¾È¤Î¤³¤È¡£
93 SVr4 ¤Ë¤Ï¾¤Ë
94 .B EINVAL
95 ¥¨¥é¡¼¥³¡¼¥É¤Ë¤Ä¤¤¤Æ¤Îµ­½Ò¤¬¤¢¤ë¡£
96 .SH Ãí°Õ
97 SUSv2 ¤È POSIX 1003.1-2003 ¤Ç¤Ï¡¢
98 .BR nice ()
99 ¤Ï¿·¤·¤¤ nice ÃͤòÊÖ¤¹¤Èµ¬Äꤵ¤ì¤Æ¤¤¤ë¡£
100 °ìÊý¡¢Linux ¥·¥¹¥Æ¥à¥³¡¼¥ë¤È (2.2.4 ¤è¤ê¸Å¤¤) (g)libc ¥é¥¤¥Ö¥é¥ê´Ø¿ô¤Ï
101 À®¸ù»þ¤Ë 0 ¤òÊÖ¤¹¡£¿·¤·¤¤ nice ÃͤÏ
102 .BR getpriority (2)
103 ¤ò»È¤Ã¤Æ¼èÆÀ¤Ç¤­¤ë¡£
104
105 glibc 2.2.4 °Ê¹ß¤Ç¤Ï¡¢
106 .BR nice ()
107 ¤Ï
108 .BR getpriority (2)
109 ¤ò¸Æ¤Ó½Ð¤¹¥é¥¤¥Ö¥é¥ê´Ø¿ô¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤Æ¤ª¤ê¡¢
110 ¸Æ¤Ó½Ð¤·¸µ¤ËÊÖ¤¹¿·¤·¤¤ nice Ãͤò
111 .BR getpriority (2)
112 ¤ò¸Æ¤Ó½Ð¤·¤Æ¼èÆÀ¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
113 ¤³¤Î¼ÂÁõ¤Ç¤Ï¡¢Àµ¾ï¤ÊÆ°ºî¤Ç¤â \-1 ¤¬ÊÖ¤µ¤ì¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
114 ³Î¼Â¤Ë¥¨¥é¡¼¤ò¸¡½Ð¤¹¤ë¤¿¤á¤Ë¤Ï¡¢
115 ¸Æ¤Ó½Ð¤·¤ÎÁ°¤Ë
116 .I errno
117 ¤Ë 0 ¤òÀßÄꤷ¡¢
118 .BR nice ()
119 ¤¬ \-1 ¤òÊÖ¤·¤¿¤È¤­¤Ë errno ¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤ÈÎɤ¤¡£
120 .SH ´ØÏ¢¹àÌÜ
121 .BR nice (1),
122 .BR fork (2),
123 .BR getpriority (2),
124 .BR setpriority (2),
125 .BR capabilities (7),
126 .BR renice (1)