V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
thomaswang
V2EX  ›  问与答

swoole worker 进程

  •  
  •   thomaswang · Feb 24, 2018 · 1426 views
    This topic created in 2995 days ago, the information mentioned may be changed or developed.

    sdf

    疑惑 1: 同步模式,"客户端连接并不会独占进程,服务器依然可以应对大量并发连接", 这种情况下,每个 worker 只能处理一个请求,卡在 io 上,只能等它 ok,才继续下去,这里的 "依然可以应对大量并发连接" 是指 master 可以接入用户请求,分配给其他 worker 处理的意思吗

    疑惑 2: 异步模式,是每个 worker 处理多个请求的意思吗,io 描述符都是非阻塞的,用 epoll 管理多个请求吗

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4798 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    ♥ Do have faith in what you're doing.