<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Change the priority of the current process</title> </head> <body><div class="manualnavbar" 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" id="refsect1-function.proc-nice-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>proc_nice</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$increment</code></span> )</div> <p class="para rdfs-comment"> <span class="function"><strong>proc_nice()</strong></span> changes the priority of the current process by the amount specified in <em><code class="parameter">increment</code></em>. A positive <em><code class="parameter">increment</code></em> will lower the priority of the current process, whereas a negative <em><code class="parameter">increment</code></em> will raise the priority. </p> <p class="para"> <span class="function"><strong>proc_nice()</strong></span> is not related to <span class="function"><a href="function.proc-open.html" class="function">proc_open()</a></span> and its associated functions in any way. </p> </div> <div class="refsect1 parameters" id="refsect1-function.proc-nice-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">increment</code></em></span> <dd> <p class="para"> The increment value of the priority change. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.proc-nice-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. If an error occurs, like the user lacks permission to change the priority, an error of level <strong><code>E_WARNING</code></strong> is also generated. </p> </div> <div class="refsect1 notes" id="refsect1-function.proc-nice-notes"> <h3 class="title">Notes</h3> <blockquote class="note"><p><strong class="note">Note</strong>: <strong>Availability</strong><br /> <p class="para"> <span class="function"><strong>proc_nice()</strong></span> 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 <span class="function"><strong>proc_nice()</strong></span> is not available on Windows. </p> </p></blockquote> </div> </div><hr /><div class="manualnavbar" 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>