Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
Latest version:
pecl install openswoole-22.1.2
Swoole Process can be attached and managed by Swoole Server with addProcess API.
Swoole Process can be used to replace PHP pcntl
extension. Compare with PHP pcntl
, Swoole Process provides more features:
Swoole\Process::__construct
Swoole\Process->start
Swoole\Process->name
Swoole\Process->exec
Swoole\Process->write
Swoole\Process->useQueue
Swoole\Process->statQueue
Swoole\Process->freeQueue
Swoole\Process->push
Swoole\Process->pop
Swoole\Process->close
Swoole\Process->exit
Swoole\Process->kill
Swoole\Process->wait
Swoole\Process->daemon
Swoole\Process->signal
Swoole\Process->alarm
Swoole\Process->setAffinity