Re: socket multithreading problem
| From: | Nathan Rixham | Date: | Thu, 29 Jul 2010 06:11:03 +0000 |
| Subject: | Re: socket multithreading problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307195@lists.php.net to get a copy of this message | ||
Ümit CAN wrote:
Hi All; I use PHP socket programming and I wish multithreading operation of the socket . When I have many requests on this socket , before the first one request is anwered , the second request is not aswered till the first one is finished. How can both requests work together without waiting each other ?1: you can't multi thread PHP 2: you can 'fork' PHP processes using the pcntl_ functions to achieve what you are looking for by making a cli based php deamon. Best, Nathan