Ype writes:[color=blue]
> For the namespaces in Jython this 'Python internal thread safety'
> is handled by the Java class:
>
> http://www.jython.org/docs/javadoc/o...StringMap.html
>
> which has almost all of it public methods Java synchronized:
>
>[/color]
http://cvs.sourceforge.net/viewcvs.p...re/PyStringMap.
java[color=blue]
>
> Thinking about it: is this the Jython parallel of CPython's
> Global Interpreter Lock, the famous GIL?[/color]
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
> For the namespaces in Jython this 'Python internal thread safety'
> is handled by the Java class:
>
> http://www.jython.org/docs/javadoc/o...StringMap.html
>
> which has almost all of it public methods Java synchronized:
>
>[/color]
http://cvs.sourceforge.net/viewcvs.p...re/PyStringMap.
java[color=blue]
>
> Thinking about it: is this the Jython parallel of CPython's
> Global Interpreter Lock, the famous GIL?[/color]
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
Comment