~/talk

Python Multithreading and Multiprocessing: Concurrency and Parallelism

Talkat EuroPython 2015 · 2015-07-20..07-26· [python]
links:none on file
slides:none on file

Covers concrete Python APIs and tradeoffs by showing threading and multiprocessing modules with runnable examples and demos of global interpreter lock behavior that releases on I O but blocks CPU bound code, how a process pool bypasses the GIL for true parallelism, and how a thread pool limits concurrency. Shows Lock, RLock, Semaphore, Event, Condition, Timer, pipes, queues, Manager proxies, shared memory and pickling, explains zombie processes and recommends preferring shared memory and careful termination for performance and correctness.

AI-written summary · about

  1. 0:00Start
  2. 4:11Concurrency
  3. 7:24Python threading
  4. 11:20Thread parallelism
  5. 12:17Global Interpreted Lock
  6. 15:07Thread pool
  7. 16:06Python multiprocessing
  8. 17:33Deadlock
  9. 18:34Locks & RLock
  10. 19:47threading.semaphore
  11. 23:17Pipes
  12. 25:19Queue
  13. 25:35Shared memory
  14. 26:54Server process
  15. 28:03Don't do it
~/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.