Message168408
Following code deadlocks on Windows 7 64-bit, Python 3.2.3
If you have a pool issue a map operation over an empty iterable then try to join later, it will deadlock. If there is no map operation or blah in the code below isn't empty, it does not deadlock
from multiprocessing import Pool
def main():
p = Pool();
blah = [];
print("Mapping");
p.map(dummy, blah);
p.close();
p.join(); # deadlocks here
print("Done");
def dummy(x):
pass;
if __name__ == "__main__":
main(); |
|
Date |
User |
Action |
Args |
2012-08-16 20:41:48 | Jimbofbx | set | recipients:
+ Jimbofbx |
2012-08-16 20:41:48 | Jimbofbx | set | messageid: <1345149708.12.0.561360753996.issue15702@psf.upfronthosting.co.za> |
2012-08-16 20:41:47 | Jimbofbx | link | issue15702 messages |
2012-08-16 20:41:47 | Jimbofbx | create | |
|