← All notes

multiprocessing spawns processes with an API similar to threading, including Process and Pool

Answer: The multiprocessing package supports spawning processes using an API similar to the threading module. It offers both local and remote concurrency. The usual objects are Process for one child, and Pool for a pool of workers. The start method decides how new processes are created.

Start methods

Set it once at the start of the program.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: python/cpython (GitHub), multiprocessing — Process-based parallelism (CPython docs source), PSF-2.0 (https://raw.githubusercontent.com/python/cpython/main/LICENSE); Python Software Foundation (docs.python.org), multiprocessing — Process-based parallelism, PSF-2.0 (https://docs.python.org/3/license.html). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: python/cpython (GitHub), multiprocessing — Process-based parallelism (CPython docs source), PSF-2.0 (https://raw.githubusercontent.com/python/cpython/main/LICENSE); Python Software Foundation (docs.python.org), multiprocessing — Process-based parallelism, PSF-2.0 (https://docs.python.org/3/license.html).

Cite this

Permanent ID: iil:note:5e8yds2v

iinventedlight. 2026. "multiprocessing spawns processes with an API similar to threading, including Process and Pool." iinventedlight Library, iil:note:5e8yds2v, version of 2026-11-18. https://iinventedlight.com/library/notes/python-multiprocessing/. License: CC-BY-4.0.

@misc{iil_note_5e8yds2v,
  author = {{iinventedlight}},
  title = {{multiprocessing spawns processes with an API similar to threading, including Process and Pool}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/python-multiprocessing/},
  note = {Permanent ID iil:note:5e8yds2v. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/python-multiprocessing.md.