src/MQK/Process/MasterProcess.php
public function spawn()
    {
        $needToStart = $this->processes - count($this->workers);
        $this->logger->debug("will start {$needToStart} processes");
        for ($i = 0; $i < $needToStart; $i++) {
            $worker = $this->spawnWorker();
            $this->didSpawnWorker($worker, $i);
            $worker->start();
            $this->workers[] = $worker;
        }
    }
public function spawn()
    {
        $needToStart = $this->processes - count($this->workers);
        $this->logger->debug("will start {$needToStart} processes");
        for ($i = 0; $i < $needToStart; $i++) {
            $worker = $this->spawnWorker();
            $this->didSpawnWorker($worker, $i);
            $worker->start();
            $this->workers[] = $worker;
        }
    }
启动新进程

@return void