<?php Swoole\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
SWOOLE_CPU_NUM
Set the CPU affinity of the process.
Join 1,000+ others and never miss out on new tips, tutorials, and more.