Re: Question about apache-php concurrent process control
| From: | Rasmus Lerdorf | Date: | Fri, 15 Jul 2005 20:46:37 +0000 |
| Subject: | Re: Question about apache-php concurrent process control | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218776@lists.php.net to get a copy of this message | ||
Liang wrote:
> I am a programmer and new to php. I wonder what process control can php
> interpreter do for multithreading . I notice that through http request, php
> interpreter can execute 2 php programs simataneously, but will only
> sequentially queued and execute if I try to execute one php code in the same
> time.
>
> Can somebody tell me is it a problem by php design not to be execute code
> concurrently, or some apache/php configuration problem where I can fix?
Apache is a multi-process single-threaded architecture. 1 request, 1
process. Concurrent requests are handled by concurrent processes. What
is it you think you need a second thread for during a request?
-Rasmus