@@ -111,6 +111,8 @@ Contexts and start methods
111
111
Depending on the platform, :mod: `multiprocessing ` supports three ways
112
112
to start a process. These *start methods * are
113
113
114
+ .. _multiprocessing-start-method-spawn :
115
+
114
116
*spawn *
115
117
The parent process starts a fresh Python interpreter process. The
116
118
child process will only inherit those resources necessary to run
@@ -121,6 +123,8 @@ to start a process. These *start methods* are
121
123
122
124
Available on POSIX and Windows platforms. The default on Windows and macOS.
123
125
126
+ .. _multiprocessing-start-method-fork :
127
+
124
128
*fork *
125
129
The parent process uses :func: `os.fork ` to fork the Python
126
130
interpreter. The child process, when it begins, is effectively
@@ -141,6 +145,8 @@ to start a process. These *start methods* are
141
145
raise a :exc: `DeprecationWarning `. Use a different start method.
142
146
See the :func: `os.fork ` documentation for further explanation.
143
147
148
+ .. _multiprocessing-start-method-forkserver :
149
+
144
150
*forkserver *
145
151
When the program starts and selects the *forkserver * start method,
146
152
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"
3025
3031
3026
3032
For more information, see :issue: `5155 `, :issue: `5313 ` and :issue: `5331 `
3027
3033
3034
+ .. _multiprocessing-programming-spawn :
3035
+ .. _multiprocessing-programming-forkserver :
3036
+
3028
3037
The *spawn * and *forkserver * start methods
3029
3038
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030
3039
0 commit comments