<div>Hi all, </div>
<div> </div>
<div>I would like to use the multiprocessing module of pvpython (paraview 3.8.1 32 bits on windows -- binary release)</div>
<div>But trying to launch several multiprocessing.Process, nothing appen. A new window with an interpreter is displayed.... but do nothing, even with the simpliest task. </div>
<div>Is there some limitations about the use of multiprocessing with pvpython ? </div>
<div> </div>
<div>Here is the code I use for testing, working well when running with python... but does nothing with pvpython. </div>
<div> </div>
<div>from multiprocessing import Process<br>import os<br>import time</div>
<div>def sleeper(name, seconds):<br> print 'starting child process with id: ', os.getpid()<br> print 'with arg ', name<br> print 'sleeping for %s ' % seconds<br> time.sleep(seconds)<br> print "Done sleeping"</div>
<div><br>if __name__ == '__main__':<br> p = Process(target=sleeper, args=('bob', 5))<br> p.start()<br> pp = Process(target=sleeper, args=('john', 5))<br> pp.start()<br> p.join()<br> pp.join()<br>
</div>
<div> </div>
<div>Thanks for help, </div>
<div> </div>
<div>Aurélien </div>