Help with Python Multiprocessing

sohcahtoa82 at gmail.com sohcahtoa82 at gmail.com
Mon Nov 24 15:58:09 EST 2014


On Sunday, November 23, 2014 12:56:51 PM UTC-8, Anurag wrote:
> Hey Socha,
> Your solution works. But then, all my 3 workers are running in a single command window. How do I make them run in three different command windows?

That, I don't know.  You would probably need to open a new command window with subprocess.Popen (The exact command line would depend on your operating system) and write your script to include a command line option to tell it which worker it is, but that starts to get really complex fast, especially if data needs to be passed between the worker and the main process.

Otherwise, I don't know if what you really want to do can be done.  You might be better off looking into creating an actual GUI.  Maybe have a window with three text boxes with each worker adding text to their own box?



More information about the Python-list mailing list