To put it simply:1. There is no thread in prefork. It is a multi-process model. A process processes a connection. It is stable and responds quickly. The disadvantage is that memory consumption is very high when the number of connections is large.2.
Apache is the most widely used and stable open-source server software for today's Web servers. There are many working modes of Apache. Currently, there are two main modes: prefork mode and worker mode.
I. Two modes
Prefork mode:
Prefork is the
In my previous article, I introduced the use of Gearman. In my project, I used PHP to write a worker that was running all the time. If according to Gearman official recommendation of the example, just a simple loop to wait for the task, there will
Prefork ModeThis multi-path processing module (MPM) implements a non-threaded, pre-derived Web server, which works in a way similar to Apache 1.3. It is suitable for systems that do not have a thread security library and need to avoid thread
One or two modesPrefork mode:Prefork is the default (default) MPM on UNIX platforms, using multiple child processes, with only one thread per child process. Each process can only maintain one connection at a certain time, and is efficient, but has a
Prefork mode
This multi-channel module (MPM) implements a non-threading, pre-built Web server that works like Apache 1.3. It is suitable for systems that do not have thread-safe libraries and need to avoid thread-compatibility issues. It is the
Prefork modeThis multi-path processing module (MPM) implements a non-threaded, pre-derived Web server that works in a similar way to Apache 1.3. It is suitable for systems that do not have a thread-safe library and need to avoid threading
Prefork modeMulti-processThis multi-path processing module (MPM) implements a non-threaded, pre-derived Web server that works in a similar way to Apache 1.3. It is suitable for systems that do not have a thread-safe library and need to avoid
If you're still using Apache when the whole world is going to be prone to nginx, you might be able to do everything you can to keep speed. You might tweak the modules to be loaded, using keepalive, fiddling with the Content negotiation module
If you're still using Apache when the whole world is going to be prone to nginx, you might be able to do everything you can to keep speed. You might tweak the modules to be loaded, using keepalive, fiddling with the Content negotiation module
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.