码迷,mamicode.com
首页 > 其他好文 > 详细

Global Interpretor Lock

时间:2014-10-04 16:17:16      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:io   ar   for   sp   div   c   on   r   bs   

讲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

 

Global Interpretor Lock

标签:io   ar   for   sp   div   c   on   r   bs   

原文地址:http://www.cnblogs.com/51reboot/p/4006053.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!