讲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
时间: 2024-11-05 13:36:25