Book Image

Parallel Programming with Python

Book Image

Parallel Programming with Python

Overview of this book

Table of Contents (16 chapters)
Parallel Programming with Python
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Using Multiprocessing and ProcessPoolExecutor

In the previous chapter, we studied how to use the threading module to solve two case problems. Throughout this present chapter, we will study how to use the multiprocessing module, which implements a similar interface to that of threading. However, here we will use the processes paradigm.

This chapter covers the following topics:

  • Understanding the concept of a process

  • Understanding multiprocessing communication

  • Using multiprocessing to obtain Fibonacci series terms with multiple inputs

  • Crawling the Web using ProcessPoolExecutor