mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add links to discussion of multiprocessing spawn/forkserver feature.
This commit is contained in:
parent
748bad2cd0
commit
ac18622126
2 changed files with 14 additions and 9 deletions
|
@ -101,6 +101,8 @@ necessary, see :ref:`multiprocessing-programming`.
|
|||
Contexts and start methods
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. _multiprocessing-start-methods:
|
||||
|
||||
Depending on the platform, :mod:`multiprocessing` supports three ways
|
||||
to start a process. These *start methods* are
|
||||
|
||||
|
@ -147,7 +149,7 @@ there may some "leaked" semaphores. (Unlinking the named semaphores
|
|||
is a serious matter since the system allows only a limited number, and
|
||||
they will not be automatically unlinked until the next reboot.)
|
||||
|
||||
To select the a start method you use the :func:`set_start_method` in
|
||||
To select a start method you use the :func:`set_start_method` in
|
||||
the ``if __name__ == '__main__'`` clause of the main module. For
|
||||
example::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue