Skip to content

Commit 50466c6

Browse files
pierreglaserpitrou
authored andcommitted
bpo-36867: DOC update multiprocessing.rst (GH-13289)
Followup to bpo-36867.
1 parent b0917df commit 50466c6

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Doc/library/multiprocessing.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,17 @@ to start a process. These *start methods* are
131131
handles on Windows.
132132

133133
On Unix using the *spawn* or *forkserver* start methods will also
134-
start a *semaphore tracker* process which tracks the unlinked named
135-
semaphores created by processes of the program. When all processes
136-
have exited the semaphore tracker unlinks any remaining semaphores.
134+
start a *resource tracker* process which tracks the unlinked named
135+
system resources (such as named semaphores or
136+
:class:`~multiprocessing.shared_memory.SharedMemory` objects) created
137+
by processes of the program. When all processes
138+
have exited the resource tracker unlinks any remaining tracked object.
137139
Usually there should be none, but if a process was killed by a signal
138-
there may be some "leaked" semaphores. (Unlinking the named semaphores
139-
is a serious matter since the system allows only a limited number, and
140-
they will not be automatically unlinked until the next reboot.)
140+
there may be some "leaked" resources. (Neither leaked semaphores nor shared
141+
memory segments will be automatically unlinked until the next reboot. This is
142+
problematic for both objects because the system allows only a limited number of
143+
named semaphores, and shared memory segments occupy some space in the main
144+
memory.)
141145

142146
To select a start method you use the :func:`set_start_method` in
143147
the ``if __name__ == '__main__'`` clause of the main module. For

0 commit comments

Comments
 (0)