On Fri, Apr 2, 2010 at 1:04 AM, Dennis Hotson <dennis.hot...@gmail.com>wrote:

> I use pcntl_fork() for writing parallel multi-process applications and it
> works pretty well.
> Also, you can use shared memory queues to pass messages between processes
> (ie msg_get_queue()).
>
> I wrote a little proof of concept library a while ago to demonstrate:
> http://github.com/dhotson/Phork
>
> It's not that complicated... the main part of it is only ~110 lines of
> code:
> http://github.com/dhotson/Phork/blob/master/classes/Phork/Process.php
>
> Regards,
> Dennis
>
> Yes, the pcntl_fork does exists, but there are some things that better with
threading:
* support on windows
* easier inter-process/inter-thread communication/data passing.
* threads are cheaper

Tyrael

Reply via email to