php - How does a server handle multiple users -


i have question in mind if answered can solve problem. how server handle multiple user request php scripts?

for example, if user open page access php script using ajax request, , instance php script has long process ( long ) , more user open same page in other machines, , more , more user.

does process in php needed finished first before second user access script can handled or handled in parallel way server?

the web server, apache, launch new independent php process every request. there may several instances of php executing same script independently of each other running simultaneously. not wait each other* nor interfere each other**.

* if trying access shared, locked resources simultaneously, may have wait each other. say, files or sessions.
** unless of course modify external resource (say files or database records) in way interfere.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -