Getting inside Python's GIL(Global Interpreter Lock) and Analyzing how it works with threads.
Note: Work in Progress (It will take time; I am not good in C :|)
- I've included the patch file to log GIL ticks and threads executed
- Or, you can check out my fork of CPython at:
- hiruko-2.7 which includes the logging code.
- hiruko-3.6 which includes the logging code.
- How the number of cores affects thread execution and GIL?
- How the number of threads affects their execution and GIL?
- And more ...
(feel free to create a new issue if you have any suggestions)
Almost entirely adapted from this awesome talk by David Beazley and his blog here
see: Hiruko