I have python2.5 and multiprocessing (get from http://code.google.com/p/python-multiprocessing/ )
This simple code (getting from documents) works very strange from time to time, sometimes itβs fine, but sometimes it starts ex timeout or hangs on my Windows (Vista), only reset helps :) Why can this happen?
from multiprocessing import Pool def f(x): print "fc",x return x*x pool = Pool(processes=4) if __name__ == '__main__': result = pool.apply_async(f, (10,))
source share