Skip to content

Commit c2b8a89

Browse files
brianschubertpicnixzgpsheadStanFromIreland
authored
[3.13] gh-84559: improve What's New entry for multiprocessing startmethod changes (GH-128173) (#137156)
[3.13] gh-84559: improve What's New entry for `multiprocessing` start method changes (GH-128173) (cherry picked from commit b8c313a) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 97f5fdf commit c2b8a89

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/library/multiprocessing.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ Contexts and start methods
111111
Depending on the platform, :mod:`multiprocessing` supports three ways
112112
to start a process. These *start methods* are
113113

114+
.. _multiprocessing-start-method-spawn:
115+
114116
*spawn*
115117
The parent process starts a fresh Python interpreter process. The
116118
child process will only inherit those resources necessary to run
@@ -121,6 +123,8 @@ to start a process. These *start methods* are
121123

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

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

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

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

3034+
.. _multiprocessing-programming-spawn:
3035+
.. _multiprocessing-programming-forkserver:
3036+
30283037
The *spawn* and *forkserver* start methods
30293038
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30303039

0 commit comments

Comments
 (0)