<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pcntl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.pcntl-setqos-class.php',
    1 => 'pcntl_setqos_class',
    2 => 'Set the QoS class of the current thread',
  ),
  'up' => 
  array (
    0 => 'ref.pcntl.php',
    1 => 'S&uuml;re&ccedil; Denetim İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.pcntl-setpriority.php',
    1 => 'pcntl_setpriority',
  ),
  'next' => 
  array (
    0 => 'function.pcntl-signal.php',
    1 => 'pcntl_signal',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pcntl/functions/pcntl_setqos_class.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pcntl-setqos-class" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_setqos_class</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">pcntl_setqos_class</span> &mdash; <span class="dc-title">Set the QoS class of the current thread</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.pcntl-setqos-class-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pcntl_setqos_class</strong></span>(<span class="methodparam"><span class="type">Pcntl\QosClass</span> <code class="parameter">$qos_class</code><span class="initializer"> = <strong><code>Pcntl\QosClass::Default</code></strong></span></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   Set the QoS class.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-setqos-class-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">qos_class</code></dt>
    <dd>
     <p class="para">
      The Quality of Service class to assign to the current thread. The
      operating system uses this as a hint to schedule CPU time, I/O priority,
      and energy usage, with higher classes preempting lower ones. See
      <span class="enumname"><strong class="enumname">Pcntl\QosClass</strong></span> for the available cases.
     </p>
     <p class="para">
      <dl>
       
        <dt><strong><code>Pcntl\QosClass::UserInteractive</code></strong></dt>
        <dd>
         <span class="simpara">
          Highest priority. Intended for work that directly drives a user
          interface and must complete virtually instantly to avoid perceived
          delay, such as event handling or drawing.
         </span>
        </dd>
       
       
        <dt><strong><code>Pcntl\QosClass::UserInitiated</code></strong></dt>
        <dd>
         <span class="simpara">
          High priority, just below <strong><code>UserInteractive</code></strong>.
          Intended for work the user has explicitly initiated and is actively
          waiting on, expected to complete within a few seconds.
         </span>
        </dd>
       
       
        <dt><strong><code>Pcntl\QosClass::Default</code></strong></dt>
        <dd>
         <span class="simpara">
          Standard priority, used when no more specific class applies. Runs
          after higher-priority work but ahead of <strong><code>Utility</code></strong>
          and <strong><code>Background</code></strong>.
         </span>
        </dd>
       
       
        <dt><strong><code>Pcntl\QosClass::Utility</code></strong></dt>
        <dd>
         <span class="simpara">
          Lower priority, intended for long-running work the user is aware of
          but not actively waiting on, such as downloads, imports, or bulk
          computation. Scheduled in an energy-efficient manner.
         </span>
        </dd>
       
       
        <dt><strong><code>Pcntl\QosClass::Background</code></strong></dt>
        <dd>
         <span class="simpara">
          Lowest priority, intended for work the user is not aware of, such as
          prefetching, indexing, or maintenance. Heavily optimized for energy
          efficiency and may be deferred when the system is under load.
         </span>
        </dd>
       
      </dl>
     </p>
    </dd>
   
  </dl>
  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <span class="simpara">This function is only available on Apple platforms.</span>
  </p></blockquote>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-setqos-class-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Hiçbir değer dönmez.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.pcntl-setqos-class-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="simpara">
   Throws an <span class="classname"><a href="class.error.php" class="classname">Error</a></span> if the underlying call to
   <code class="literal">pthread_set_qos_class_self_np()</code> fails.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pcntl-setqos-class-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.pcntl-getqos-class.php" class="function" rel="rdfs-seeAlso">pcntl_getqos_class()</a> - Get the QoS class of the current thread</span></li>
   <li><span class="enumname"><strong class="enumname">Pcntl\QosClass</strong></span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>