Python GIL
Discussions center on Python's Global Interpreter Lock (GIL), its limitations for multithreading and parallelism, efforts to remove it, performance impacts, and alternatives like multiprocessing.
Activity Over Time
Top Contributors
Keywords
Sample Comments
That answer about the GIL is wrong, BTW.
You still have the GIL in python to overcome.
PyPy has a GIL, so it wouldn't solve this particular issue.
Python still has GIL and it's definitely more practical and widely adopted.
Can Python copy how other languages like golang or java operate without a Gil? Why or why not?
Why were threads inadequate? (There's no GIL in most implementations, IIRC).
Yes, but it's very easy to hit a number crunching operation that locks the GIL.
The GIL is optional in new Python versions. Downsides are legacy library compatibility and degraded single thread performance.
How do single-threaded programs benefit from a lack of GIL?
There's a branch of Python that removed the GIL. On single-threaded stuff, it's slower than regular Python.