Status of Python threading support (GIL removal)?

Terry Reedy tjreedy at udel.edu
Fri Jun 19 12:15:02 EDT 2009


Jure Erznožnik wrote:
> See here for introduction:
> http://groups.google.si/group/comp.lang.python/browse_thread/thread/370f8a1747f0fb91
> 
> Digging through my problem, I discovered Python isn't exactly thread
> safe and to solve the issue, there's this Global Interpreter Lock
> (GIL) in place.
> Effectively, this causes the interpreter to utilize one core when
> threading is not used and .95 of a core when threading is utilized.

Python does not have (or not have) GIL.
It is an implementation issue.
CPython uses it, to good effect.

> Is there any work in progess on core Python modules that will
> permanently resolve this issue?
> Is there any other way to work around the issue aside from forking new
> processes or using something else?

Use one of the other implementations.
Jython, IronPython, Pypy, ???




More information about the Python-list mailing list