Parallel icon indicating copy to clipboard operation
Parallel copied to clipboard

Execution with callback instead of looping

Open pelshoff opened this issue 13 years ago • 0 comments

Hi Mike,

I took the liberty of adding callback signals instead of looping. This makes the first finishing child process call the parent to start a new process rather than waiting for the next process to finish. It took me a while to figure out that I needed to declare ticks (see http://nl3.php.net/manual/en/function.pcntl-signal.php, example 1) but on my quadcore processor the example I added runs in 5 seconds in stead of 8. I hope this helps and I am curious about any feedback you have for me.

Pim

pelshoff avatar Jan 30 '12 22:01 pelshoff