Re: Regarding Note ID 105823 on php.net
| From: | Anshul Agrawal | Date: | Mon, 26 Sep 2011 15:18:38 +0000 |
| Subject: | Re: Regarding Note ID 105823 on php.net | ||
| References: | 1 2 3 4 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183452@lists.php.net to get a copy of this message | ||
On Mon, 26 Sep 2011 20:27:19 +0530, Daniel Brown <danbrown@php.net> wrote:
On Mon, Sep 26, 2011 at 10:37, Anshul Agrawal <anshul@designgrill.com> wrote:I was refraining myself from editing the page itself hoping some more eligible editors would like to make the changes after reading the note. But now I think I should go ahead and make necessary modifications. Regards, AnshulThats exactly the reason I had to write the note. The title says it all fine but the example output shown on the page shows the task is being done serially and not parallely. That's because only one worker was running to complete the task. You need minimum of two workers running simultaneously to have the tasks execute in parallel which would also change the example output.Would it not be better, instead, to submit a better code example?We're always looking for ways to have the manual improved, and would likely welcome your submission with open arms. Actually the code written is perfect. But it is not clear that you have to run two workers and a client instead of the a worker and a client. Just running two workers instead of one will change the output of the client script and will actually execute the task in parallel.