zoukankan      html  css  js  c++  java
  • php的ts和nts安装包

    2017-12-29 15:17:05 星期五

    翻译一下PHP对 ts , nts 的解释

    官网说明地址:  http://windows.php.net/download  (windows下载页左侧)

    TS  refers to multithread capable builds. NTS refers to single thread only builds. Use case for TS binaries involves interaction with a multithreaded SAPI and PHP loaded as a module into a web server. For NTS binaries the widespread use case is interaction with a web server through the FastCGI protocol, utilizing no multithreading (but also for example CLI).

    一段代码需要经过 `编译`和 `连接` 等操作才能成为最终的可执行文件(二进制文件)

    而单词, compile、build分别对应编译和连接这两个过程。

    线程安全(TS) 指的是编译连接时指定启用多线程安全扩展, 使PHP支持多线程, 非线程安全(NTS)指的是单线程build; 

    线程安全的使用场景是, 使用多线程的SAPI进行交互并且PHP作为一个web服务器的模块被加载

    对非线程安全来说, 最广泛的应用场景是通过并未使用多线程的 FastCGI 协议跟一个web服务器进行交互 (命令行环境下也是非线程安全的模式)

  • 相关阅读:
    混合背包
    二维背包
    0/1背包问题(DP)
    冒泡排序
    快速排序
    最长上升子序列
    二分查找
    n后问题
    crontab 定时任务
    删除以某字符串开头的表
  • 原文地址:https://www.cnblogs.com/iLoveMyD/p/8144819.html
Copyright © 2011-2022 走看看