Overview
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