📄 renice.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>renice</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_001_014_1859"> </a>NAME</h4><blockquote>renice - set system scheduling priorities of running processes</blockquote><h4><a name = "tag_001_014_1860"> </a>SYNOPSIS</h4><blockquote><pre><code>renice <b>[</b>-n <i>increment</i><b>][</b> -g| -p| -u<b>]</b><i> ID</i>...renice <i>nice_value</i><b>[</b>-p<b>] </b><i>pid</i>...<b>[</b>-g <i>gid</i>...<b>][</b>-p <i>pid</i>...<b>][</b>-u <i>user...</i><b>]</b>renice <i>nice_value </i>-g <i>gid</i>...<b>[</b>-g <i>gid</i>...<b>][</b>-p <i>pid</i>...<b>][</b>-u <i>user...</i><b>]</b>renice <i>nice_value </i>-u <i>user</i>...<b>[</b>-g <i>gid</i>...<b>][</b>-p <i>pid</i>...<b>][</b>-u <i>user...</i><b>]</b></code></pre></blockquote><h4><a name = "tag_001_014_1861"> </a>DESCRIPTION</h4><blockquote>The<i>renice</i>utility requests that thesystem scheduling priorities(seethe definition of<b>system scheduling priority</b>in the <b>XBD</b> specification, <a href="../xbd/glossary.html"><b>Glossary</b> </a> )of one or more running processes be changed.By default, the applicable processes are specified bytheir process IDs.When a process group is specified (see<b>-g</b>),the request applies to all processes in the process group.<p>The system scheduling priority is boundedin an implementation-dependent manner.If the requested<i>increment</i>(or<i>nice_value</i>in the obsolescent versions)would raise or lower the system scheduling priority of the executedutility beyond implementation-dependent limits,then the limit whose value wasexceeded is used.<p>When a user is<i>renice</i>d,the request applies toall processes whose saved set-user-ID matches the user IDcorresponding to the user.<p>Regardless of which options are supplied or any other factor,<i>renice</i>will not alter the system scheduling priorities of any processunless the user requesting such a change has appropriate privilegesto do so for the specified process.If the user lacksappropriate privileges to perform the requested action, the utilitywill return an error status.<p>The saved set-user-ID of the user's process will bechecked instead of its effective user ID when<i>renice</i>attempts to determine the user ID of the processin order to determine whether the user has appropriate privileges.</blockquote><h4><a name = "tag_001_014_1862"> </a>OPTIONS</h4><blockquote>The<i>renice</i>utility supports the <b>XBD</b> specification, <a href="../xbd/utilconv.html#usg"><b>Utility Syntax Guidelines</b> </a> .The obsolescent version conforms withthe following exceptions:<ul><p><li>The first operand,<i>nice_value</i>,must precede the options andcan have the appearance of a multi-digit option.<p><li>The<b>-g</b>,<b>-p</b>and<b>-u</b>options can each take multiple option-arguments.<p><li>The<i>pid</i>option-argument can be used without its<b>-p</b>option.<p></ul><p>The following options are supported:<dl compact><dt><b>-g</b><dd>Interpret all operands(or just the<i>gid</i>arguments in theobsolescent version)as unsigned decimal integer process group IDs.<dt><b>-n </b><i>increment</i><dd>Specify how the system scheduling priority of the specifiedprocess or processes is to be adjusted.The<i>increment</i>option-argument isa positive or negative decimal integer that will be usedto modify the system scheduling priority of the specified process or processes.Positive<i>increment</i>values cause a lower system scheduling priority.Negative<i>increment</i>values may requireappropriate privileges and will cause a higher systemscheduling priority.<dt><b>-p</b><dd>Interpret all operands(or just the<i>pid</i>arguments in the obsolescent version)as unsigned decimal integer process IDs.The<b>-p</b>option is the default if no options are specified.<dt><b>-u</b><dd>Interpret all operands(or just the<i>user</i>arguments in the obsolescent version)as users.If a user exists with a user name equal to the operand,then the user ID of that user will be used in further processing.Otherwise, if theoperand represents an unsigneddecimal integer, it will be used as the numeric user ID of the user.</dl></blockquote><h4><a name = "tag_001_014_1863"> </a>OPERANDS</h4><blockquote>The following operands are supported:<dl compact><dt><i>ID</i><dd>A process ID, process group ID or user name/user ID,depending on the option selected.<dt><i>nice_value</i><dd>The value specified is taken asthe actual system scheduling priority,rather than as an increment to the existing system scheduling priority.Specifying a scheduling priority higher than that of theexisting process may require appropriate privileges.</dl></blockquote><h4><a name = "tag_001_014_1864"> </a>STDIN</h4><blockquote>Not used.</blockquote><h4><a name = "tag_001_014_1865"> </a>INPUT FILES</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_1866"> </a>ENVIRONMENT VARIABLES</h4><blockquote>The following environment variables affect the execution of<i>renice</i>:<dl compact><dt><i>LANG</i><dd>Provide a default value for the internationalisation variablesthat are unset or null.If<i>LANG</i>is unset or null, the corresponding value from theimplementation-dependent default locale will be used.If any of the internationalisation variables contains an invalid setting, theutility will behave as if none of the variables had been defined.<dt><i>LC_ALL</i><dd>If set to a non-empty string value,override the values of all the other internationalisation variables.<dt><i>LC_CTYPE</i><dd>Determine thelocale for the interpretation of sequences of bytes of text data ascharacters (for example, single- as opposed to multi-byte charactersin arguments).<dt><i>LC_MESSAGES</i><dd>Determine the locale that should be used to affectthe format and contents of diagnosticmessages written to standard error.<dt><i>NLSPATH</i><dd>Determine the location of message cataloguesfor the processing of<i>LC_MESSAGES .</i></dl></blockquote><h4><a name = "tag_001_014_1867"> </a>ASYNCHRONOUS EVENTS</h4><blockquote>Default.</blockquote><h4><a name = "tag_001_014_1868"> </a>STDOUT</h4><blockquote>Not used.</blockquote><h4><a name = "tag_001_014_1869"> </a>STDERR</h4><blockquote>Used only for diagnostic messages.</blockquote><h4><a name = "tag_001_014_1870"> </a>OUTPUT FILES</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_1871"> </a>EXTENDED DESCRIPTION</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_1872"> </a>EXIT STATUS</h4><blockquote>The following exit values are returned:<dl compact><dt>0<dd>Successful completion.<dt>>0<dd>An error occurred.</dl></blockquote><h4><a name = "tag_001_014_1873"> </a>CONSEQUENCES OF ERRORS</h4><blockquote>Default.</blockquote><h4><a name = "tag_001_014_1874"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_1875"> </a>EXAMPLES</h4><blockquote><ol><p><li>Adjust the system scheduling priority sothat process IDs 987 and 32 would have a lower scheduling priority:<pre><code>renice -n 5 -p 987 32</code></pre><p><li>Adjust the system scheduling priority sothat group IDs 324 and 76 would have a higher scheduling priority,if the user has the appropriate privileges to do so:<pre><code>renice -n -4 -g 324 76</code></pre><p><li>Adjust the system scheduling priority sothat numeric user ID 8 and user<b>sas</b>would have a lower scheduling priority:<pre><code>renice -n 4 -u 8 sas</code></pre><p></ol><p>Useful nice values on historical systems include19 or 20 (the affected processes will run only when nothing elsein the system attempts to run),0 (the base scheduling priority),and any negative number (to make processes run faster).</blockquote><h4><a name = "tag_001_014_1876"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_001_014_1877"> </a>SEE ALSO</h4><blockquote><i><a href="nice.html">nice</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -