HackerTube.dev

Understanding the Python GIL

David Beazley · 127.5K views · 2012-02-03 · 46:10

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

David Beazley's PyCon 2010 talk explains how the Python Global Interpreter Lock works and shows experiments where multithreaded code runs slower, even on more cores, due to lock contention and context-switching overhead.

On Hacker News

The canonical recommendation for understanding the GIL, praised both for its clarity and for how well it explains a deep technical topic.

Recommended by 4 HN people across 4 months · HN mentions 2013–2023

Topics

Search by tags

What people said

famousactress · 2014-01 · Strong recommendation

"The point of such a presentation is to take a piece of code that the presenter has understood deeply and for them to help the audience understand the core ideas..." I do get lots of value out of that. My favorite example is Beazley's GIL talk: [VIDEO]

Read the original HN comment ↗
gshulegaard · 2022-08 · Recommendation

I am not expert, and this might be dated information, but historically there is a "thrashing" introduced between the GIL and OS scheduled threads which has surprising performance implications. David Beazley does a much better illustrating the nuances than I ever could: [VIDEO] Including a wild phenomenon where a threaded Python program's performance can degrade by increasing number of CPU cores available to a system. Coroutines avoid this by not requiring individual thread scheduling by the OS. So they effectively release the GIL like threads on IO but avoid OS level thread switching.

Read the original HN comment ↗
devxpy · 2018-07 · Recommendation

David probably isnt the best guy for that. But here's one of the famous ones on GIL. [VIDEO] Beware though, his talks are known to be devastating to the programmer, resulting in serious head injuries, trauma, headaches and other fun stuff.

Read the original HN comment ↗

Sources

Video by David Beazley, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources