In these code alongs, we learn parallel programming in Python with the multiprocessing module and use it to build a reaction-diffusion simulator. Work through them in order; each lesson contains the video in which we write the code together.
- Parallelism vs. Concurrency
- Summing a List Across Processes in Python
- Any Number of Processes and Timing the Speedup in Python
- Parallel Craps in Python
- A Serial Diffusion Simulator in Python
- Parallel Diffusion with Pool and starmap in Python
- Reaction-Diffusion: Designing the Serial Engine in Python
- Reaction-Diffusion: Applying Reactions in Python
- Parallel Reaction-Diffusion: Strips and Halos in Python
- Parallel Reaction-Diffusion: Processing Strips in Python
- A Tour of Reaction Systems