Chapter 3. Process-based Parallelism
In this chapter, we will cover the following recipes:
Using the
multiprocessing
Python moduleHow to spawn a process
How to name a process
How to run a process in the background
How to kill a process
How to use a process in a subclass
How to exchange objects between processes
Using a queue to exchange objects
Using pipes to exchange objects
How to synchronize processes
How to manage a state between processes
How to use a process pool
Using the
mpi4py
Python modulePoint-to-point communication
Avoiding deadlock problems
Collective communication using
broadcast
Collective communication using a
scatter
functionCollective communication using a
gather
functionCollective communication using
AlltoAll
Reduction operation
How to optimize the communication