(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::BackgroundNota: This function is only available on Apple platforms.
No se retorna ningún valor.
Throws an Error if the underlying call to
pthread_set_qos_class_self_np() fails.