'parent'); # 仅输出一次
});
```
- 快速创建运行多个子Runtime
```php
$p = new \WorkBunny\Process\Runtime();
$p->run---------:|
| fork() | 父Runtime | √ | 分叉一个子Runtime |
| runfork行为
- 在 **fork** 行为发生后,Runtime对象会产生两个分支
- id=0 的父Runtime
- id=N 的子Runtime
- **fork()** 和 **run$newP){
var_dump($newP->getId()); # id === 0
var_dump('new-parent');
});
});
# run指定执行
- 指定某个id的Runtime执行
```php
$p = new \WorkBunny\Process\Runtime();
$p->run(function (){},function