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
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime