PHP itself does not support threads, but it involves a thread-safe issue during installation. Windows provides two installation packages, compiled and installed under Linux. The option –enable-maintainer-zts is provided.
Many people think that it is a good thing to see "safety", but it is not.
Since PHP has no threads, what does this thread safety mean? This is related to how it works. Here are just two of the popular PHP operating modes (LNMP and LNAMP) under Linux.
If it is an LNMP environment, that is to say PHP is running in php-fpm mode, then thread security is not involved, because php-fpm is run in a multi-process manner. If you are running LNAMP or LAMP (mod_php), you should first understand the Apache MPM. To put it simply, Apache supports multi-threaded (Worker) and multi-process (Prefork). In general, most of the Apache under Linux is running in Prefork mode, which is for stability reasons.
So, under the conclusion, LNMP does not need thread safety. For stability considerations under Apache, it is recommended to run in a multi-process manner (Prefork), which does not require thread safety.
Finally, PHP is installed as thread-safe, it takes more CPU than non-thread-safe, and may increase bugs or instability. This is the point, otherwise PHP does not need to set this option. .
one by one binding methodIn order to meet the special needs of the staff of the unit, many units hav
Recently, due to work reasons, the employees of the unit need to access a shared
Sometimes the download space is provided for download, so you can directly set up any file download.
If you want to view the number of IIS concurrent connections, the easiest and conv
Detailed illustration of IIS6 installation and configuration of .net 2.0 process
Website 501 Method Not Implemented Error
Using SecureRDP to Enhance Server Security
Seven major issues to be aware of server stability
Happy summer, Baotong teaches you how to play the server DIY
Breaking distance limits Server remote management two skills
FreeBSD view ip address command
10 useful Linux command interview questions and answers
Win10 update th2 version failure error 0xc1900101-0x30018 solution
Win10 system browser font garbled how to do
After booting into the "Windows is starting" interface, it will not move
iTunes can't be installed What to do
Two major problems that lead to low cooling efficiency in the engine room
How to install incompatible VC++6.0 (text) with Win7
Win10 update KB3201845 solves the problem of high usage of Microsoft IME CPU
How to quickly clean up the useless icons in the taskbar
Solve the problem that Windows can't open add/remove programs