Let’s first understand it literally. None-Thread Safe means non-thread safety, and no thread safety check is performed during execution; Thread Safe means thread safety, and thread safety checks are performed during execution to prevent new requirements. CGI execution that starts new threads exhausts system resources.
Let’s look at the two execution methods of PHP: ISAPI and FastCGI. The FastCGI execution method uses a single thread to perform operations, so there is no need to perform thread safety checks. Removing the protection of thread safety checks can improve execution efficiency. Therefore, if FastCGI (whether paired with IIS 6 or IIS 7) is used to execute PHP, It is recommended to download and execute non-thread safe PHP (PHP binary files have two packaging methods: msi and zip, please download the zip package). The thread safety check is prepared for ISAPI PHP. Because many PHP modules are not thread safe, you need to use Thread Safe PHP.
The above has introduced the analysis of the differences between the two versions of trouble is a friend lyrics php5 non-thread-safe and thread-safe, including the content of trouble is a friend lyrics. I hope it will be helpful to friends who are interested in PHP tutorials.