Skip to content
0:00 / 0:00

#multithreading#multiprocessing#gil

Tutorial: Santiago Basulto - Python Concurrency: from beginner to pro

PyCon US

34K subscribers • 26 videos on Hallway • Conference channel

YouTube
  • One of the most-watched uploads on PyCon US, a conference or university channel Hallway lists. Nobody has recommended it in the communities yet, so it ranks below community picks.
  • Presented by Santiago Basulto
  • Linked in the descriptionsantiagobasulto/pycon-concurrency-tutorial-2020

Intermediate. Assumes working knowledge.

37K views6 years ago

Programming languagesSystems programmingPythonConcurrency and parallelismOperating systems

Santiago Basulto teaches the fundamentals of concurrency, multithreading, multiprocessing, and the GIL in Python.

Presented by: Santiago Basulto This is the ultimate concurrency tutorial. Aimed for beginners, we won’t skip the ugly parts (OS low level and computer science concepts). In this tutorial you’ll learn: what is concurrency and why you need it? what’s the role of the OS in computing and parallelism? how processes work, what fundamental OS structures are used what are threads, how are they created and what’s their scope what modules does Python offer for multithreading (_thread, threading, concurrent.futures) and what’s the difference between them, the same for multiprocessing (subprocess, multiprocessing or concurrent.futures). what are race conditions? how to avoid them with synchronization primitives and threadsafe collections What is the GIL? In which situations will it affect our code? This tutorial will include coding examples for all the concepts in it, along with two main activities, in which we’ll be writing a web server both using multithreading and multiprocessing! At the end of this tutorial, you’ll feel confident answering the following questions: Should I even use concurrency? If I want to use concurrency, threads or processes? How can I make sure my code is safe? Code repo: github.com/santiagobasulto/pycon-concurrency-tutorial-2020

Why it's here

A top upload from a listed channel

PyCon US is on Hallway's list of conference and university channels, and this upload is one of its most-watched talks or lectures. Nobody has recommended it in the communities yet, so it ranks below community picks.