Skip to content

[3.13] gh-84559: improve What's New entry for multiprocessing startmethod changes (GH-128173) #137156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Doc/library/multiprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ Contexts and start methods
Depending on the platform, :mod:`multiprocessing` supports three ways
to start a process. These *start methods* are

.. _multiprocessing-start-method-spawn:

*spawn*
The parent process starts a fresh Python interpreter process. The
child process will only inherit those resources necessary to run
Expand All @@ -121,6 +123,8 @@ to start a process. These *start methods* are

Available on POSIX and Windows platforms. The default on Windows and macOS.

.. _multiprocessing-start-method-fork:

*fork*
The parent process uses :func:`os.fork` to fork the Python
interpreter. The child process, when it begins, is effectively
Expand All @@ -141,6 +145,8 @@ to start a process. These *start methods* are
raise a :exc:`DeprecationWarning`. Use a different start method.
See the :func:`os.fork` documentation for further explanation.

.. _multiprocessing-start-method-forkserver:

*forkserver*
When the program starts and selects the *forkserver* start method,
a server process is spawned. From then on, whenever a new process
Expand Down Expand Up @@ -3025,6 +3031,9 @@ Beware of replacing :data:`sys.stdin` with a "file like object"

For more information, see :issue:`5155`, :issue:`5313` and :issue:`5331`

.. _multiprocessing-programming-spawn:
.. _multiprocessing-programming-forkserver:

The *spawn* and *forkserver* start methods
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy