in reply to Re: Monitoring child threads
in thread Monitoring child threads

Great suggestion, but unfortunately I am running this program either on Linux or Windows - I guess I could use a different signal for Linux, but it will not work for Windows.

Replies are listed 'Best First'.
Re^3: Monitoring child threads
by roboticus (Chancellor) on Jan 24, 2008 at 13:37 UTC
    weismat:

    OK, here's what I'd suggest... ;^)

    Create a set of shared variables to maintain the child processes state and time of last update (like a watchdog). Then periodically wake up your main loop, and check for any thread whose last update time is too long whose state is not "DONE"....

    ...roboticus