Message139545
| Author |
rosslagerwall |
| Recipients |
pitrou, rosslagerwall |
| Date |
2011年07月01日.05:49:08 |
| SpamBayes Score |
0.028011294 |
| Marked as misclassified |
No |
| Message-id |
<1309499349.27.0.725815068111.issue12456@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Further analysis seems to indicate that it is a race between the shutdown code and the processes finishing.
This code hangs:
"""
executor = concurrent.futures.ProcessPoolExecutor(2)
executor.map(is_prime, [1, 2])
executor.shutdown()
"""
while this doesn't:
"""
executor = concurrent.futures.ProcessPoolExecutor(2)
executor.map(is_prime, [1, 2])
time.sleep(1)
executor.shutdown()
""" |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月01日 05:49:09 | rosslagerwall | set | recipients:
+ rosslagerwall, pitrou |
| 2011年07月01日 05:49:09 | rosslagerwall | set | messageid: <1309499349.27.0.725815068111.issue12456@psf.upfronthosting.co.za> |
| 2011年07月01日 05:49:08 | rosslagerwall | link | issue12456 messages |
| 2011年07月01日 05:49:08 | rosslagerwall | create |
|