This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jimbofbx
Recipients Jimbofbx
Date 2010-11-05.22:22:28
SpamBayes Score 4.3876994e-07
Marked as misclassified No
Message-id <1288995752.47.0.110889938296.issue10332@psf.upfronthosting.co.za>
In-reply-to
Content
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");
History
Date User Action Args
2010-11-05 22:22:32Jimbofbxsetrecipients: + Jimbofbx
2010-11-05 22:22:32Jimbofbxsetmessageid: <1288995752.47.0.110889938296.issue10332@psf.upfronthosting.co.za>
2010-11-05 22:22:28Jimbofbxlinkissue10332 messages
2010-11-05 22:22:28Jimbofbxcreate