W
W
Welaurs2017-07-12 17:51:35
PHP
Welaurs, 2017-07-12 17:51:35

What is the working principle of apache?

Good day. The question is this: let's say 2 clients started loading the page at the same time. Do I understand correctly that until the first client receives a response, the second apache will not even start executing the php code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VisualIdeas, 2017-07-12
@Welaurs

Parallel execution:
A client comes, requests data (php, html, js, json - yes, whatever), the
server issues resources for it and it works,
other clients also come and receive their resources...

C
CityCat4, 2017-07-12
@CityCat4

Apache spawns a) a new handler process b) a new handler thread (depending on which dispatcher it is working with). Each process/thread executes its own copy of php, and its own copy of the script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question