Skip to Content
Intuitive Python
book

Intuitive Python

by David Muller
May 2021
Intermediate to advanced
142 pages
3h 37m
English
Pragmatic Bookshelf
Content preview from Intuitive Python

Using concurrent.futures to Run Code Concurrently

The concurrent.futures module provides a unified high-level interface over both Thread and Process objects (so you don’t have to use the low-level interfaces in threading and process).

While concurrent.futures may not be able to run code concurrently in all the ways that you’d expect based on reading the underlying threading and multiprocessing modules, concurrent.futures is a great place to start. It exposes an approachable interface for executing code under threads and processes and gives you the power to run code concurrently without needing to get into the grittiest details of concurrent programming. If you can write a function in Python, you can use concurrent.futures.

The two most important ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pythonic Programming

Pythonic Programming

Dmitry Zinoviev
Python for Geeks

Python for Geeks

Muhammad Asif

Publisher Resources

ISBN: 9781680508635Errata Page