Python · Concurrency and Parallelism · Advanced · 30 min read
Python Multiprocessing: Process Pools, Start Methods, Shared Memory and CPU-Bound Parallelism
Use all your CPU cores safely. Learn multiprocessing and ProcessPoolExecutor, spawn versus fork versus forkserver, pickling rules, chunksize and overhead, sharing data with shared_memory, queues, pipes and managers, initialisers and worker state, error handling, timeouts and shutdown, logging from workers, and when processes are not worth it.
Create an account to start
Create a free account to see what this lesson covers
- Every free lesson in every section, in full
- Track your progress and pick up where you left off
- Free practice questions and an incident simulation
- Takes under a minute: name, email and a password
No card needed. Full access to Python is a paid upgrade you can choose later.