Global Interpretor Lock

讲Python的Global Interpretor Lock的比较好的文章 耐心看完会有好多收获,我的收获就是

Python多线程 < Python单线程 < Python多进程

多进程请用python multiprocessing

参见PEP: 371 python2.6引入pyProcessing

并更名为 multiprocessing

The current CPython interpreter implements the Global Interpreter Lock (GIL) and barring

work in Python 3000 or other versions currently planned [2], the GIL will remain as-is

within the CPython interpreter for the foreseeable future. While the GIL itself

 

posted on 2014-10-04 15:35  51reboot  阅读(208)  评论(0编辑  收藏  举报

导航