PHP5 Non-thread-safe and Thread-safe These two versions of the difference analysis _php skills

Source: Internet
Author: User
Tags zip
First of all, None-thread safe is not thread secure, it is not thread security security at the time of execution, thread safe is threading security, thread safety checks are performed to prevent new requirements from starting the CGI of the new thread Execution runs out of system resources.

Then look at the two ways PHP executes: ISAPI and fastcgi. FastCGI execution is done with a single thread, so there is no need for thread security checks, and removal of thread security checks can improve execution efficiency, so if you are executing PHP with FastCGI (regardless of IIS 6 or IIS 7), it is recommended that you download, execute Non-thread Safe PHP (PHP's two-way file has two packages: MSI, zip, download zip suite). Thread security checks are just for ISAPI PHP, because there are many PHP modules that are not thread-safe, so you need to use thread safe's PHP.

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.