Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 5539

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!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 any process</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.pcntl-getpriority.html">pcntl_getpriority</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.pcntl-signal-dispatch.html">pcntl_signal_dispatch</a></div>
 <div class="up"><a href="ref.pcntl.html">PCNTL Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.pcntl-setpriority" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_setpriority</h1>
  <p class="verinfo">(PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">pcntl_setpriority</span> &mdash; <span class="dc-title">Change the priority of any process</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pcntl-setpriority-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>pcntl_setpriority</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$priority</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$pid</code><span class="initializer"> = getmypid()</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$process_identifier</code><span class="initializer"> = PRIO_PROCESS</span></span>
  ]] )</div>

  <p class="para rdfs-comment">
   <span class="function"><strong>pcntl_setpriority()</strong></span> sets the priority of
   <code class="parameter">pid</code>. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-setpriority-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">priority</code></dt>

     <dd>

      <p class="para">
       <code class="parameter">priority</code> is generally a value in the range
       <em>-20</em> to <em>20</em>. The default priority
       is <em>0</em> while a lower numerical value causes more
       favorable scheduling.  Because priority levels can differ between
       system types and kernel versions, please see your system&#039;s setpriority(2)
       man page for specific details.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">pid</code></dt>

     <dd>

      <p class="para">
       If not specified, the pid of the current process is used.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">process_identifier</code></dt>

     <dd>

      <p class="para">
       One of <strong><code>PRIO_PGRP</code></strong>, <strong><code>PRIO_USER</code></strong>
       or <strong><code>PRIO_PROCESS</code></strong>.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-setpriority-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.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pcntl-setpriority-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.pcntl-getpriority.html" class="function" rel="rdfs-seeAlso">pcntl_getpriority()</a> - Get the priority of any process</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.pcntl-getpriority.html">pcntl_getpriority</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.pcntl-signal-dispatch.html">pcntl_signal_dispatch</a></div>
 <div class="up"><a href="ref.pcntl.html">PCNTL Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>