Chapter 3. Process-based Parallelism
In this chapter, we will cover the following recipes:
- Using the multiprocessingPython module
- How 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 mpi4pyPython module
- Point-to-point communication
- Avoiding deadlock problems
- Collective communication using broadcast
- Collective communication using a scatterfunction
- Collective communication using a gatherfunction
- Collective communication using AlltoAll
- Reduction operation
- How to optimize the communication
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                