Contribute Media
A thank you to everyone who makes this possible: Read More

Grok the GIL: Write Fast And Thread-Safe Python

Description

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.

Details

Improve this page