Message120547
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"); |
|
Date |
User |
Action |
Args |
2010-11-05 22:22:32 | Jimbofbx | set | recipients:
+ Jimbofbx |
2010-11-05 22:22:32 | Jimbofbx | set | messageid: <1288995752.47.0.110889938296.issue10332@psf.upfronthosting.co.za> |
2010-11-05 22:22:28 | Jimbofbx | link | issue10332 messages |
2010-11-05 22:22:28 | Jimbofbx | create | |
|