Status of Python threading support (GIL removal)?
bcharrow at csail.mit.edu
Fri Jun 19 09:53:08 EDT 2009
Jure Erznožnik wrote:
> See here for introduction:
> 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.
> 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?
There is a group of people working on an alternative implementation to Python
that, among other things, will not have a GIL:
There was even a successful attempt to remove the GIL from CPython, but it
caused single threaded python code to be much slower. See more here:
More information about the Python-list