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

Meet Threads and Processes

Python provides two keystone standard library modules that allow you to run code concurrently:

  1. threading
  2. multiprocessing

The threading module provides the Thread object for running code with threads and the multiprocessing module provides the Process object for running code with processes.

What Are Threads and Processes?

images/aside-icons/info.png

Threads and processes are abstractions provided by your operating system that allow you to run code. In general, processes are independent sequences of execution with their own dedicated memory space. Threads, by contrast, live within a process. One or more threads can run within a given parent process. ...

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