Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Parallelism Shootout - Threads vs Asyncio vs Multiple Processes

EuroPython Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a comparative analysis of parallelism techniques in Python through this conference talk from EuroPython 2015. Dive into the mechanics and benchmarks of three different approaches to handling multiple URL downloads: using threads, multiple processes, and asyncio. Learn how to implement each method using the threading, multiprocessing, and asyncio modules. Understand the concepts of POSIX threads, data parallelism, and coroutines. Gain insights into breaking down parallelism problems, sequential approaches, and the basics of asyncio. Discover which technique performs best for handling concurrent I/O-bound tasks in Python.

Syllabus

Parallelism Shootout threadsve multiple processes asyncio
Using three different modules: threading, multiprocessing and asyncio.
Break down the problem.
Before we begin...
Before we parallelise...
Sequential Approach
Actual real POSIX threads (pthreads) or Windows threads.
threading example to multiprocessing...
Convenient means of parallelising the execution of a function across multiple input values, distributing the input data across processes (data parallelism).
sequential example to multiprocessing...
Provides infrastructure for writing single- threaded concurrent code.
Basic asynio Concepts
The component that is in charge of keeping track of and scheduling all the coroutines that want time on the thread.
Drum roll

Taught by

EuroPython Conference

Reviews

Start your review of Parallelism Shootout - Threads vs Asyncio vs Multiple Processes

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.