• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Len1133
V2EX  ›  程序员

[ Python ] 既然 Python 不能利用多核,那 Python web 是如何保证并发效率的?

  •  
  •   Len1133 · May 31, 2018 · 2778 views
    This topic created in 3091 days ago, the information mentioned may be changed or developed.
    prolic
    prolic
    May 31, 2018
    1
    多进程+协程
    Luckyray
    Luckyray
    May 31, 2018
    2
    搜了下这个问题,现有的回答蛮多的,包括知乎上也有讨论。
    Len1133
    Len1133
    OP
    May 31, 2018
    3
    多进程+协程能有这么好的效果,其他语言多进程+多线程+多线程不是更给力吗
    Beebird
    Beebird
    May 31, 2018
    4
    实际部署中,一般都会启动多个 works,也是能利用多核的。
    tonghuashuai
    tonghuashuai
    May 31, 2018
    5
    多进程啊,跑多个 work
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2326 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 12:51 · PVG 20:51 · LAX 04:51 · JFK 07:51
    ♥ Do have faith in what you're doing.