推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
SlipStupig
V2EX  ›  Python

python GIL 如果可以调整颗粒度会怎么样

  •  
  •   SlipStupig · Mar 5, 2016 · 2756 views
    This topic created in 3745 days ago, the information mentioned may be changed or developed.
    python 的解释器用的事情全局锁,假设能让开发人员自定义锁的颗粒度会怎么样呢?
    shyling
        1
    shyling  
       Mar 5, 2016 via iPad
    什么叫锁的颗粒度?或许你需要 https://wiki.python.org/moin/GlobalInterpreterLock
    sujin190
        2
    sujin190  
       Mar 5, 2016
    想太多,细粒度的锁早就有人做过了,然而并不好用,还想自定义锁粒度。。
    neoblackcap
        3
    neoblackcap  
       Mar 5, 2016
    这个问题好,若是想不用 GIL ,那么已经有一个很好的例子了,那就是 Java 的实现。那可是伤筋动骨的大改造。
    VYSE
        4
    VYSE  
       Mar 5, 2016
    Jython 或 IronPython
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3038 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 08:43 · PVG 16:43 · LAX 01:43 · JFK 04:43
    ♥ Do have faith in what you're doing.