📄 function.proc-nice.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Change the priority of the current process</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.proc-get-status.html">proc_get_status</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.proc-open.html">proc_open</a></div> <div class="up"><a href="ref.exec.html">Program execution Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.proc-nice" class="refentry"> <div class="refnamediv"> <h1 class="refname">proc_nice</h1> <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">proc_nice</span> — <span class="dc-title">Change the priority of the current process</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>proc_nice</b></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$increment</tt></span> )</div> <p class="para rdfs-comment"> <b>proc_nice()</b> changes the priority of the current process by the amount specified in <i><tt class="parameter">increment</tt></i>. A positive <i><tt class="parameter">increment</tt></i> will lower the priority of the current process, whereas a negative <i><tt class="parameter">increment</tt></i> will raise the priority. </p> <p class="para"> <b>proc_nice()</b> is not related to <a href="function.proc-open.html" class="function">proc_open()</a> and its associated functions in any way. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">increment</tt></i></span> <dd> <p class="para"> The increment value of the priority change. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. If an error occurs, like the user lacks permission to change the priority, an error of level <b><tt>E_WARNING</tt></b> is also generated. </p> </div> <div class="refsect1 notes"> <h3 class="title">Notes</h3> <blockquote><p><b class="note">Note</b>: <b>Availability</b><br /> <b>proc_nice()</b> will only exist if your system has 'nice' capabilities. 'nice' conforms to: SVr4, SVID EXT, AT&T, X/OPEN, BSD 4.3. This means that <b>proc_nice()</b> is not available on Windows. <br /> </p></blockquote> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.proc-get-status.html">proc_get_status</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.proc-open.html">proc_open</a></div> <div class="up"><a href="ref.exec.html">Program execution Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -