uTools-Manuals/docs/linux/renice.html
2019-04-21 11:50:48 +08:00

18 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="renice">renice</h1>
<p>修改正在运行的进程的调度优先级</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>renice命令</strong> 可以修改正在运行的进程的调度优先级。预设是以程序识别码指定程序调整其优先权,您亦可以指定程序群组或用户名称调整优先权等级,并修改所有隶属于该程序群组或用户的程序的优先权。只有系统管理者可以改变其他用户程序的优先权,也仅有系统管理者可以设置负数等级。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">renice(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-g指定进程组id
-p&lt;程序识别码&gt;:改变该程序的优先权等级,此参数为预设值。
-u指定开启进程的用户名。</code></pre>
<h3 id="参数">参数</h3>
<p>进程号:指定要修改优先级的进程。</p>
<h3 id="实例">实例</h3>
<p>将行程id为987及32的行程与行程拥有者为daemon及root的优先序号码加1</p>
<pre><code class="language-bash">renice 1 987 -u daemon root -p 32</code></pre>
<p>注意每一个行程都有一个唯一的id。</p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->