Python multiprocessing library

The multiprocessing module is Python's standard library that is shipped with Python binaries, and it is available from Python 2.6. There's also the threading module, which allows you to spawn multiple threads, but they all share the same memory space. Multiprocessing comes with more advantages than threading. One of them is isolated memory space for each process, and it can take advantage of multiple CPUs and cores.

Get Hands-On Enterprise Automation with Python. now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.