~/talk

Python Concurrency: from beginner to pro

Talkat PyCon US 2020 · 2020-04-15..04-23· [python]
slides:none on file

Covers concrete claims, tools and timings: explains OS/process/thread internals, uses _thread, threading, subprocess, multiprocessing and concurrent.futures, and demonstrates a Flask crypto web server repo (https://github.com/santiagobasulto/pycon-concurrency-tutorial-2020) that is run with artificial sleep to compare approaches. Shows sequential HTTP checks ~6.8s, threads ~2.3s for IO work, prime tests where threads hurt (≈4.2s) and processes win (≈0.76s), and emphasizes GIL blocks CPU‑bound parallelism and the producer–consumer queue/pool patterns that avoid manual locking.

AI-written summary · about

  1. 0:00Start
  2. 2:03What this tutorial is NOT about
  3. 4:33Martelli Model of Scalability
  4. 11:31The OS is the one protecting hardware
  5. 17:36The OS Scheduler
  6. 23:54We can run several instances of the same program (at the same time)
  7. 25:50A multithreaded example
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.