Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81470

Re: Help with Python Multiprocessing

Newsgroups comp.lang.python
Date 2014-11-24 12:58 -0800
References <91fd5810-6a2a-46d8-8d1e-b68afced3987@googlegroups.com> <7718cf2e-9975-4cd4-854b-f765d60418d2@googlegroups.com>
Message-ID <d11609bd-7afe-422b-b37a-a50935079c8f@googlegroups.com> (permalink)
Subject Re: Help with Python Multiprocessing
From sohcahtoa82@gmail.com

Show all headers | View raw


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?

Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Help with Python Multiprocessing Anurag <anuragpatibandla7@gmail.com> - 2014-11-13 10:07 -0800
  Re: Help with Python Multiprocessing Anurag <anuragpatibandla7@gmail.com> - 2014-11-13 10:10 -0800
    Re: Help with Python Multiprocessing MRAB <python@mrabarnett.plus.com> - 2014-11-13 18:45 +0000
  Re: Help with Python Multiprocessing sohcahtoa82@gmail.com - 2014-11-13 11:18 -0800
    Re: Help with Python Multiprocessing Anurag <anuragpatibandla7@gmail.com> - 2014-11-13 15:22 -0800
      Re: Help with Python Multiprocessing sohcahtoa82@gmail.com - 2014-11-14 11:41 -0800
  Re: Help with Python Multiprocessing Gary Herron <gary.herron@islandtraining.com> - 2014-11-13 11:12 -0800
    Re: Help with Python Multiprocessing Anurag <anuragpatibandla7@gmail.com> - 2014-11-13 15:21 -0800
  Re: Help with Python Multiprocessing Anurag <anuragpatibandla7@gmail.com> - 2014-11-23 12:56 -0800
    Re: Help with Python Multiprocessing sohcahtoa82@gmail.com - 2014-11-24 12:58 -0800

csiph-web