Status of Python threading support (GIL removal)?
Olivier.Darge at gmail.com
Fri Jun 19 10:40:05 EDT 2009
On 19 juin, 11:52, Jure Erznožnik <jure.erznoz... at gmail.com> wrote:
> See here for introduction:http://groups.google.si/group/comp.lang.python/browse_thread/thread/3...
> 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?
please read this carefully,
there is a solution for Python on multi-core : multiprocessing api.
Keep real threads for common tasks like network stuff for example.
I recently complained too :-)
More information about the Python-list