YoVDO

Parallelism Shootout - Threads vs Asyncio vs Multiple Processes

Offered By: EuroPython Conference via YouTube

Tags

EuroPython Courses Multiprocessing Courses Threads Courses Asyncio Courses

Course Description

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

Related Courses

Supercharged Web Scraping with Asyncio and Python
Udemy
爬虫基础教学 Python Scraping 教程
YouTube
Python Asynchronous Programming - AsyncIO and Async-Await
Tech with Tim via YouTube
Python Django, Aiohttp Workshop: Cooking Secret Note service
Udemy
Learn Advanced Python 3: Concurrency
Codecademy