Python 3.2 - GIL - good/bad?

前端 未结 3 418
傲寒
傲寒 2021-02-01 19:20

Python 3.2 ALPHA is out.

From the Change Log, it appears the GIL has been entirely rewritten.

A few questions:

  1. Is having a GIL good or bad? (and wh
3条回答
  •  一个人的身影
    2021-02-01 20:04

    The best explanation I've seen as to why the GIL sucks is here:

    http://www.dabeaz.com/python/GIL.pdf

    And the same guy has a presentation on the new GIL here:

    http://www.dabeaz.com/python/NewGIL.pdf

    If that's all that's been done it still sucks - just not as bad. Multiple threads will behave better. Multi-core will still do nothing for you with a single python app.

提交回复
热议问题