2 thoughts on “Video: Multi-tasking in PHP”

  1. Hi Jonathan,

    Great Video! Just Something I noticed on the closure as a callback in the beginning. I Think the question asked was how is each thread getting access to the closure function from the parent, and while I cannot be 100% sure, I think the closure function is passed as a copy (so it is not the parent copy), rather than being passed by reference to the child process. (Certainly if it is POSIX-SAFE, then this should be true).

    Anyway great video.

  2. Thank you! You are close, it is not passed by reference but rather the child process is a complete copy of the parent process, including the callback.

Leave a Reply

Your email address will not be published. Required fields are marked *