(no subject)

Michael Chermside mcherm at mcherm.com
Thu Oct 9 09:17:18 EDT 2003


Ype writes:
> For the namespaces in Jython this 'Python internal thread safety'
> is handled by the Java class:
> 
> http://www.jython.org/docs/javadoc/org/python/core/PyStringMap.html
> 
> which has almost all of it public methods Java synchronized:
> 
> 
http://cvs.sourceforge.net/viewcvs.py/jython/jython/org/python/core/PyStringMap.
java
> 
> Thinking about it: is this the Jython parallel of CPython's
> Global Interpreter Lock, the famous GIL?

No.

The GIL has the unfortunate disadvantage that it prevents multiple
processor machines (or other modern architechures) from processing
multiple bytecodes simultaneously in different threads. Jython does
not have this limitation.

-- Michael Chermside






More information about the Python-list mailing list