@@ -111,6 +111,8 @@ Contexts and start methods
111111Depending on the platform, :mod: `multiprocessing ` supports three ways
112112to 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+
30283037The *spawn * and *forkserver * start methods
30293038^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30303039
0 commit comments