Help with Python Multiprocessing
anuragpatibandla7 at gmail.com
Thu Nov 13 19:10:27 CET 2014
On Thursday, November 13, 2014 1:07:56 PM UTC-5, Anurag wrote:
> I am having trouble understanding the Multiprocessing module.
> I need to run three different files 'Worker1' , 'Worker2', 'Worker3' all at once. Currently I am doing this :
> from multiprocessing import Process
> import Worker1.py
> import Worker2.py
> import Worker3.py
> p1 = Process(target=Worker1.py)
> p2 = Process(target=Worker2.py)
> p3 = Process(target=Worker3.py)
> But this will only start the 'Worker1'. How do I execute all the three files at once?
I am using Python 2.7 and each of my 'Worker' has a never ending loop that runs continuously.
More information about the Python-list