progamming approach review, child processes

Discussion in 'Python' started by astar, Nov 23, 2010.

  1. astar

    astar Guest

    So I have not done much with child processes before.

    I have an input of programs to be updated, a child process that does
    the
    compiles and links (with a log output to an individual file), and a
    process wait
    at the end. Except the child process can hang (at the moment, the
    problem that might show up is: waiting for
    input). At which point a convenience becomes a hinderance.

    As it happens the idea of doing the compiles in parallel is supported
    by the
    ports system I am working with. So I thought I could avoid the wait
    syntax, do
    a lot of children, save all the process hmm I am not sure what to call
    the
    pointers, and after a while interrogate the process information to
    see if all
    the children got done. At some point, I could think a child is hung
    and maybe
    do some useful reporting. Realize that this might be the next day
    because the
    compiles might take a while.

    Is this a reasonable approach?

    Thank you for your consideration.

    Possibly pointless information:

    openbsd 4.8 workstation, packages, but using the port system, want
    only to
    compile packages I have installed. There is a utility to tell me
    which packages
    are out of date. And I really know I could use pkg_add -u. I did
    some
    attachments of the programs, but I suppose they will get scrubbed..

    python is I think 2.6.5?
    astar, Nov 23, 2010
    #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. Jeff Rodriguez
    Replies:
    23
    Views:
    1,069
    David Schwartz
    Dec 9, 2003
  2. Apollo

    Python progamming certification

    Apollo, Dec 9, 2003, in forum: Python
    Replies:
    15
    Views:
    3,822
    Apollo
    Dec 13, 2003
  3. Rony Steelandt

    Progamming python without a keyboard

    Rony Steelandt, May 4, 2006, in forum: Python
    Replies:
    3
    Views:
    300
    Benji York
    May 5, 2006
  4. David Shaw

    API Progamming

    David Shaw, Jul 13, 2005, in forum: C++
    Replies:
    3
    Views:
    289
    Serge Paccalin
    Jul 13, 2005
  5. CR
    Replies:
    5
    Views:
    358
    Greg Comeau
    Nov 11, 2005
Loading...

Share This Page