Parallelization on muli-CPU hardware?

Aahz aahz at pythoncraft.com
Wed Oct 6 16:39:13 EDT 2004


In article <6db3f637.0410052100.31bbe86f at posting.google.com>,
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
objects are created and stored on the heap, and any CPython code can
access any object at any time, thanks to the glories of introspection.
I'm not sure what compromises Jython and IronPython make.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

WiFi is the SCSI of the 21st Century -- there are fundamental technical
reasons for sacrificing a goat.  (with no apologies to John Woods)



More information about the Python-list mailing list