[New-bugs-announce] [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>:


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)));
    for r in results:

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>

More information about the New-bugs-announce mailing list