Parallelization on muli-CPU hardware?

Daniel Dittmar daniel.dittmar at sap.corp
Thu Oct 7 18:37:46 CEST 2004


Aahz wrote:
> P.M. <pcm at cpugrid.net> wrote:
> 
>>I wonder if Python could be changed to use thread local storage?  That
>>might allow for multiple interpreter instances without the GIL (I've
>>never looked at the actual code so I'm just hypothesizing).  I took a
>>quick look at Lua today and it has no problems with creating multiple
>>instances of the interpreter, so it definately is a solvable problem.
> 
> 
> The problem is that CPython doesn't have thread-local storage.  All

I'm sure P.M. meant that the Python C API uses thread local storage 
instead of global/static variables.

Daniel



More information about the Python-list mailing list