Wednesday, 15 May 2013

multithreading - apache php > users requests -



multithreading - apache php > users requests -

hi question how info flow works in apache web server + php.

when user access url: localhost/index.php , in same time when user access same url guess requests executes 1 1 (not multi-threaded) , first user response other one.

the question is: if somehow first request remain in loop long time 1min other users should wait first request finish requests finished in order response apache web server + php? if reply yes (other users should wait in queue): can create requests executed in parallel (multi-thread) in order prevent waiting in queue

whilst php may single threaded, apache can run multi-process , multi-threaded. allows many requests executed simultaneously. can configure how many simultaneous requests in fact.

you can see apache serving these requests live, see waiting, , beingness served via mod_status (http://httpd.apache.org/docs/2.2/mod/mod_status.html).

php multithreading apache request response

No comments:

Post a Comment