mirror of
https://github.com/vipul-sharma20/hiruko.git
synced 2026-06-28 08:13:05 +00:00
Threads vs Python's Global Interpreter Lock
- Python 100%
| hiruko-rc1-3.6.patch | ||
| hiruko.patch | ||
| LICENSE.md | ||
| plot.py | ||
| README.md | ||
Hiruko
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 :|)
The Code
- 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.
Questions
- 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)
Credits
Almost entirely adapted from this awesome talk by David Beazley and his blog here
The Name
see: Hiruko