Jython, GILs and object locking.

Peter Hansen peter at engcorp.com
Thu Oct 9 13:20:28 EDT 2003


Alan Kennedy wrote:
> 
> Would the following statements be correct?
> 1. [snip]
> 2. Jython is implemented on top of java, which has built-in support
> for fine-grained locking of individual objects. Therefore, the jython
> implementers chose not to use a GIL, but instead to rely on the
> fine-grained locking facilities of the Java platform to protect object
> integrity. 

You seem to think there is a "Jython runtime interpreter" in the same
way there is one for CPython...  Are you aware that Jython compiles
your Python source to Java bytecode?

-Peter




More information about the Python-list mailing list