ext-swooleis supported until v4.7.1, use
ext-openswoole>= v4.7.1. Latest version:
pecl install openswoole-4.9.1
Taking advantage of multicore, you have to use multiple processes in you server or application. You can build multiple processes application easily with the features provided by Swoole.
Multiple processes can run simultaneously (without context-switching) in multi-core processors. You can create multiple Linux processes in several ways:
Task Workerprocesses in
Notice: process level synchronization should not be used within coroutine context