Parallelism Shootout - Threads vs Asyncio vs Multiple Processes

Parallelism Shootout - Threads vs Asyncio vs Multiple Processes

EuroPython Conference via YouTube Direct link

The component that is in charge of keeping track of and scheduling all the coroutines that want time on the thread.

13 of 14

13 of 14

The component that is in charge of keeping track of and scheduling all the coroutines that want time on the thread.

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Parallelism Shootout - Threads vs Asyncio vs Multiple Processes

Automatically move to the next video in the Classroom when playback concludes

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

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.