Differences between php5non-thread-safe and thread-safe

Source: Internet
Author: User
Differences between php5non-thread-safe and thread-safe. First, literally, None-ThreadSafe is non-thread security, while thread security is not checked during execution. ThreadSafe is thread security, during execution, the Thread is performed (literally, None-thread Safe is non-Thread security, and Thread security is not checked during execution. thread Safe is 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.

Thread Safe is non-Thread security, and does not perform thread security check during execution. Thread Safe is thread security. during execution, the Thread (...

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.