Analysis of the differences between the two versions of php5 non thread safe and thread safe

  • 2020-03-31 20:29:20
  • OfStack

Literally, none-thread Safe is non-thread-safe, and there are no Thread security checks at execution time. Thread Safe is thread-safe and executes with a Thread security check to prevent the CGI execution of starting a new Thread from depleting the system's resources due to new requirements.

Let's take a look at two implementations of PHP: ISAPI and FastCGI. FastCGI execution way is based on a single thread to perform the operation, so don't need to do a thread safety inspection, removal of thread safety check protection can improve the execution efficiency instead, so if is FastCGI (whether collocation IIS 6 or IIS 7) execute PHP, recommend download, execute non - thread safe PHP (PHP 2 � a � a � � � packages, msi, zip, � � zip suite). Thread safety checks are for isapi-style PHP, because many PHP modules are not thread-safe, so you need to use Thread Safe PHP.

Related articles: