Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Execution with callback instead of looping #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pelshoff
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant