i having issues multiprocessing.process - when targeting @ simple function, seems function not getting executed. running this:
import multiprocessing, time def f(length): time.sleep( length ) p = multiprocessing.process(target=f, args=(1000,)) p.start() time.sleep(0.5) print( p, p.is_alive() )
returns
<process(process-5, stopped[1])> false
using built-in time.sleep on other hand working:
import multiprocessing, time p2 = multiprocessing.process(target=time.sleep, args=(1000,)) p2.start() time.sleep(0.5) print( p2, p2.is_alive() )
gives
<process(process-6, started)> true
i using spyder 2.3.7/python 3.5.0 64bits on windows sever 2012.
Comments
Post a Comment