Join 4,000+ others and never miss out on new tips, tutorials, and more.
Latest version:
pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5
<?php OpenSwoole\Process::setaffinity(array $cpu_set) : bool
The array of cpu number. Use swoole_CPU_NUM
to get the number of cpu.
For example: array(0,2,3) stands for CPU0/CPU2/CPU3