- 679 名前:nobodyさん mailto:sage [2012/01/12(木) 14:01:06.08 ID:???]
- ちなみに俺も>>662やってみた
俺は並列処理の事なんか分かっていないので、このやり方で合っているか分からないけれど <?phpの後に、$time = time(); 最終行に、echo 'time:' . (time() - $time) . 'sec' . PHP_EOL;を付けてみた 2chの改行規制で出力形式変えるけど結果は child: 0 child: 1 child: 2 child: 3 child: 4 child: 5 child: 6 child: 7 child: 8 child: 9 time:10sec parent: 0 parent: 1 parent: 2 parent: 3 parent: 4 parent: 5 parent: 6 parent: 7 parent: 8 parent: 9 wait begin. wait end. time:10sec となった >>676 www.php.net/manual/ja/pcntl.installation.php にはCLI版も可能って書いてるんじゃないの? >>675 ちなみに自分はcentOSです
|

|