[issue10332] Multiprocessing maxtasksperchild results in hang
James Hutchison
report at bugs.python.org
Fri Nov 5 23:22:32 CET 2010
New submission from James Hutchison <jamesghutchison at gmail.com>:
v.3.2a3
If the maxtasksperchild argument is used, the program will just hang after whatever that value is rather than working as expected. Tested in Windows XP 32-bit
test code:
import multiprocessing
def f(x):
return 0;
if __name__ == '__main__':
pool = multiprocessing.Pool(processes=2,maxtasksperchild=1);
results = list();
for i in range(10):
results.append(pool.apply_async(f, (i)));
pool.close();
pool.join();
for r in results:
print(r);
print("Done");
----------
components: Library (Lib)
messages: 120547
nosy: Jimbofbx
priority: normal
severity: normal
status: open
title: Multiprocessing maxtasksperchild results in hang
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10332>
_______________________________________
More information about the Python-bugs-list
mailing list