Book Image

Parallel Programming with Python

By : Jan Palach, Jan Palach V Cruz da Silva
Book Image

Parallel Programming with Python

By: Jan Palach, Jan Palach V Cruz da Silva

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 4. Using the threading and concurrent.futures Modules

In the previous chapter, we presented some potential problems that may be solved with parallelism. In this chapter, we will analyze the implementation of the solutions of each problem using the threading module from the Python language.

This chapter covers the following topics:

  • Defining threads

  • Choosing between threading and _thread

  • Using threading to obtain the Fibonacci series term for multiple inputs

  • Crawling the Web using the concurrent.futures module