Difference between php5non-thread-safe and thread-safe _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
The difference between php5non-thread-safe and thread-safe. PHP5.2.10 and None-ThreadSafe and ThreadSafe are available, for users, from PHP5.2.10 (PHP5.2.10 and PHP5.2.10), there are two versions available: None-Thread Safe and Thread Safe. What are the differences between the two versions, what should I do as a user? The following is a description of Juyou.

First, literally, None-Thread Safe means non-thread security, and no Thread security check is performed during execution. Thread Safe means thread security, the thread security check is performed to prevent the CGI execution method of the new thread from consuming system resources when there are new requirements.

Let's take a look at two PHP execution methods: ISAPI and FastCGI. FastCGI executes operations in a single thread, so it does not need to perform thread security checks. apart from the thread security check protection, it can improve the execution efficiency, if you use FastCGI (whether with IIS 6 or IIS 7) to execute PHP, we recommend that you download and execute non-thread safe PHP (the PHP binary path has two packet encoding methods: msi, zip, please refer to the zip suite ). The Thread security check is prepared for PHP in The ISAPI mode. because many php modules are not Thread-Safe, Thread Safe PHP is required.

Except (PHP5.2.10 and 5.3 are available now), and there are two versions available: None-Thread Safe and Thread Safe. What are the differences between the two versions? for users...

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.