nginx 所支持的并发模型

nginx 所支持的并发模型
=======================

编译自:
http://nginx.org/en/docs/events.html


nginx 支持多种并发模型,并发模型的具体实现根据系统平台而有所不同。
在支持多种并发模型的平台上,nginx 自动选择最高效的模型。但我们也可以使用 use 指令
在配置文件中显式地定义某个并发模型。

nginx 支持的并发模型如下:

select
    标准并发模型。在编译 nginx 时,如果所使用的系统平台没有更高效的并发模型,select 模块
    将被自动编译。configure 脚本的选项:--with-select_module 和 --without-select_module 可被用来强制性地开启或禁止 select 模块的编译
    

poll
    标准并发模型。与 select 类似,在编译 nginx 时,如果所使用的系统平台没有更高效的并发模型,poll 模块将被自动编译。configure 脚本的选项:--with-poll_module 和 --without-poll_module 可用于强制性地开启或禁止 poll 模块的编译


kqueue
    高效并发模型
    可在 FreeBSD 4.1+, OpenBSD 2.9+, NetBSD 2.0, and Mac OS X 平台中使用

epoll
    高效并发模型
    可在 Linux 2.6+ 平台中使用
    
    Note:
    Some older distributions like SuSE 8.2 provide patches that add epoll support to 2.4 kernels.

/dev/poll
    高效并发模型
    可在 Solaris 7 11/99+, HP/UX 11.22+ (eventport), IRIX 6.5.15+, and Tru64 UNIX 5.1A+ 平台使用

eventport
    高效并发模型
    可用于 Solaris 10 平台
    
    

    

转载于:https://my.oschina.net/u/2288423/blog/702570

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值