Home > Backend Development > PHP Tutorial > The difference between php5 non-thread-safe and thread-safe_PHP tutorial

The difference between php5 non-thread-safe and thread-safe_PHP tutorial

WBOY
Release: 2016-07-21 14:54:36
Original
1047 people have browsed it

Starting from PHP5.2.10 version (there are now two versions of PHP5.2.10 and 5.3), there are two versions to choose from, None-Thread Safe and Thread Safe. What are the differences between these two versions? How should users choose? Juyou will tell you about it below.

First understand it literally, None-Thread Safe means non-thread safety, no thread safety check is performed during execution; Thread Safe means thread safety, and thread safety check is performed during execution to prevent The CGI execution method of starting a new thread when there is a new request 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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/364574.htmlTechArticleStarting from PHP5.2.10 version (there are now two versions of PHP5.2.10 and 5.3), there is None-Thread Safe There are two versions to choose from, Thread Safe and Thread Safe. What are the differences between these two versions? As a user...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template