File tree 1 file changed +10
-6
lines changed 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -131,13 +131,17 @@ to start a process. These *start methods* are
131
131
handles on Windows.
132
132
133
133
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.
137
139
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.)
141
145
142
146
To select a start method you use the :func: `set_start_method ` in
143
147
the ``if __name__ == '__main__' `` clause of the main module. For
You can’t perform that action at this time.
0 commit comments