php-swoole 進程創建

<?php //創建進程 //進程對應的執行函數 function doProcess(swoole_process $worker){ echo "PID",$worker->pid,"\n"; sleep(10); } //創建進程 1 $process = new swoole_process("doProcess"); $pid = $process->start();
相關文章
相關標籤/搜索