homepage

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 2012年08月16日.20:41:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345149708.12.0.561360753996.issue15702@psf.upfronthosting.co.za>
In-reply-to
Content
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();
History
Date User Action Args
2012年08月16日 20:41:48Jimbofbxsetrecipients: + Jimbofbx
2012年08月16日 20:41:48Jimbofbxsetmessageid: <1345149708.12.0.561360753996.issue15702@psf.upfronthosting.co.za>
2012年08月16日 20:41:47Jimbofbxlinkissue15702 messages
2012年08月16日 20:41:47Jimbofbxcreate

AltStyle によって変換されたページ (->オリジナル) /