Re: Let child process to run while parent is out (multiprocessing)

Discussion in 'Python' started by Chris Angelico, Jul 20, 2012.

  1. On Fri, Jul 20, 2012 at 6:34 AM, John Wong <> wrote:
    > Here is output:
    > yeukhon@fermat:~$ python c2.py
    > abcd12345
    > done [now hangs for 10 seconds]
    > I build things


    Side point: I just tried your code on Python 2.6 on Windows, and it
    produced all three lines of output before waiting the ten seconds.
    Same in Python 3.3 on Linux (after putting parentheses around the
    prints, the only 2->3 change needed). Your experience of it delaying
    the "building" message probably has something to do with output
    buffering.

    As to the fundamental, though: I don't know that Python truly supports
    what you're trying to do. A skim of the docs doesn't show up anything
    obvious, so I'm hoping that someone else has already tried this and
    can give an authoritative or empirical answer.

    ChrisA
    Chris Angelico, Jul 20, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rabbits77
    Replies:
    1
    Views:
    493
    John C. Bollinger
    Feb 25, 2004
  2. Noel Dolan
    Replies:
    0
    Views:
    206
    Noel Dolan
    Jul 18, 2004
  3. Zhidian Du
    Replies:
    2
    Views:
    95
    David Efflandt
    Feb 21, 2004
  4. Kushal Kumaran
    Replies:
    0
    Views:
    145
    Kushal Kumaran
    Jul 20, 2012
  5. Bitswapper
    Replies:
    5
    Views:
    109
    Prasad, Ramit
    Aug 27, 2013
Loading...

Share This Page