Size: 601
Comment:
|
Size: 979
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
Again, Jython does not have the straightjacket of the GIL. This is because all Python threads are mapped to Java threads and use standard Java garbage collection support (the main reason for the GIL in CPython is because of the reference counting GC system). The important ramification here is that you can use threads for compute-intensive tasks that are written in Python. |
jython
Python for the Java platform (2.7)
GUI app
GIL
https://jython.readthedocs.io/en/latest/chapter19/#no-global-interpreter-lock No Global Interpreter Lock
Jython lacks the global interpreter lock (GIL), which is an implementation detail of CPython. For CPython, the GIL means that only one thread at a time can run Python code.
Again, Jython does not have the straightjacket of the GIL. This is because all Python threads are mapped to Java threads and use standard Java garbage collection support (the main reason for the GIL in CPython is because of the reference counting GC system). The important ramification here is that you can use threads for compute-intensive tasks that are written in Python.