[issue17127] multiprocessing.dummy.Pool does not accept maxtasksperchild argument
Josh Rosenberg
report at bugs.python.org
Fri Jul 18 02:19:00 CEST 2014
Josh Rosenberg added the comment:
Note: To my knowledge there is little or no benefit to using maxtasksperchild when the implementation is using threads. Cleaning up worker processes intermittently will guarantee that memory, handles, etc., are returned to the OS. But memory and handles allocated in a thread are not freed when the thread exits (with the exception of explicitly thread local stuff, which isn't common); it's all using the same heap, and memory allocated by thread 1 is indistinguishable from memory allocated by thread 2.
It's not a bad idea to keep the interface consistent, but I'm not sure it's a good idea to offer and implement a behavior that isn't actually accomplishing anything. Anyone else have any thoughts?
----------
nosy: +josh.rosenberg
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17127>
_______________________________________
More information about the Python-bugs-list
mailing list