Python multiprocessing memory leak with enthought canopy?
def print_square(i):
print str(i*i)
from multiprocessing import Pool
p = Pool(1)
for i in range(10):
p.apply_async(print_square, args=(i,))
p.close()
p.join()
spawns infinite processes and crashes my machine on Windows 8 with 64 bit
canopy on python 2.7. Why?
No comments:
Post a Comment