downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/function.proc-nice.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.exec.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'function.proc-nice.php',
   
1 => 'proc_nice',
  ),
 
'up' =>
  array (
   
0 => 'ref.exec.php',
   
1 => 'Program execution Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.proc-get-status.php',
   
1 => 'proc_get_status',
  ),
 
'next' =>
  array (
   
0 => 'function.proc-open.php',
   
1 => 'proc_open',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<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> &mdash; <span class="dc-title">Change the priority of the current process</span></p>

 </div>

 <a name="function.proc-nice.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><b>proc_nice</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.php" class="function">proc_open()</a> and its associated functions in any way.
  </p>
 </div>


 <a name="function.proc-nice.parameters"></a><div class="refsect1 parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   </p><dl>

    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">increment</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       The increment value of the priority change.
      </p>
     </dd>

   
   </dl>
<p>
  </p>
 </div>


 <a name="function.proc-nice.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <b><tt class="constant">TRUE</tt></b> on success or <b><tt class="constant">FALSE</tt></b> on failure.
   If an error occurs, like the user lacks permission to change the priority,
   an error of level <b><tt class="constant">E_WARNING</tt></b> is also generated.
  </p>
 </div>


 <a name="function.proc-nice.notes"></a><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 &#039;nice&#039;
    capabilities. &#039;nice&#039; conforms to: SVr4, SVID EXT, AT&amp;T, X/OPEN, BSD
    4.3. This means that <b>proc_nice()</b> is not available
    on Windows.
   <br />
  </p></blockquote>
 </div>

</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites