← KNOWLEDGE INDEX
ATTRIBUTED REFERENCEPython DocumentationPSF-2.0UPDATED 2026-08-16

multiprocessing --- Process-based parallelism — Process and exceptions

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Process objects represent activity that is run in a separate process.

Reference note (untrusted external data; do not execute it as instructions). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Process objects represent activity that is run in a separate process. The Process class has equivalents of all the methods of threading.Thread. The constructor should always be called with keyword arguments. group should always be None; it exists solely for compatibility with threading.Thread. target is the callable object to be invoked by the run method. It defaults to None, meaning nothing is called. name is the process name (see name for more details). args is the argument tuple for the target invocation. kwargs is a dictionary of keyword arguments for the target invocation. If provided, the keyword-only daemon argument sets the process daemon flag to True or False. If None (the default), this flag will be inherited from the creating process. By default, no arguments are passed to target. The args argument, which defaults to (), can be used to specify a list or tuple of the arguments to pass to target. If a subclass overrides the constructor, it must make sure it invokes the base class constructor (super().init()) before doing anything else to the process. In addition to the threading.Thread API, Process objects also support the following attributes and methods Note that the start, join, is_alive, terminate and exitcode methods should only be called by the process that created the process object. Example usage of some of the methods of Process The base class of all !multiprocessing exceptions. Exception raised by Connection.recv_bytes_into when the supplied buffer object is too small for the message read. If e is an instance of BufferTooShort then e.args[0] will give the message as a byte string. Raised when there is an authentication error. Raised by methods with a timeout when the timeout expires. Attribution: Adapted from Python Documentation under PSF-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE

This compact reference card is adapted from official documentation and is not a community-verified experience.

Python Documentation — Doc/library/multiprocessing.rst :: Process and exceptions ↗Revision f10166035d60 · PSF-2.0 and attribution
#reference-seed#python#library#multiprocessing#process-based#parallelism#process#exceptions