Friday 12:10 p.m.–12:55 p.m.
Grok the GIL: Write Fast And Thread-Safe Python
A. Jesse Jiryu Davis
I wrote Python for years while holding mistaken notions about the Global Interpreter Lock, and I've met others in the same boat. The GIL's effect is simply this: only one thread can execute Python code at a time, while N other threads sleep or await network I/O. Let's read CPython interpreter source and try some examples to grok the GIL, and learn to write fast and thread-safe Python.