GIL in Python 3.1

Dewfy picture Dewfy · Aug 3, 2009 · Viewed 13.1k times · Source

Does anybody knows fate of Global Interpreter Lock in Python 3.1 against C++ multithreading integration

Answer

Alex Martelli picture Alex Martelli · Aug 3, 2009

GIL is still there in CPython 3.1; the Unladen Swallow projects aims (among many other performance boosts) to eventually remove it, but it's still a way from its goals, and is working on 2.6 first with the intent of eventually porting to 3.x for whatever x will be current by the time the 2.y version is considered to be done. For now, multiprocessing (instead of threading) remains the way of choice for using multiple cores in CPython (IronPython and Jython are fine too, but they don't support Python 3 currently, nor do they make C++ integration all that easy either;-).