array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), '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 => 'PCNTL Funktionen', ), '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); ?>
(PHP 8 >= 8.4.0)
pcntl_setqos_class — Set the QoS class of the current thread
Set the QoS class.
qos_classThe 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 Pcntl\QosClass for the available cases.
Pcntl\QosClass::UserInteractivePcntl\QosClass::UserInitiatedUserInteractive.
Intended for work the user has explicitly initiated and is actively
waiting on, expected to complete within a few seconds.
Pcntl\QosClass::DefaultUtility
and Background.
Pcntl\QosClass::UtilityPcntl\QosClass::BackgroundHinweis: This function is only available on Apple platforms.
Es wird kein Wert zurückgegeben.
Throws an Error if the underlying call to
pthread_set_qos_class_self_np() fails.