One way (of many, I am sure) is to have the calculation thread periodically (fairly frequently) set a boolean in the parent thread to say "I'm still alive", and eventually set another boolean in the parent thread to indicate successful completion.

The parent thread, which is waiting for the completion of the calculation thread one way or the other, would use a timer to periodically check the flags.
If the successful completion flag is set, then you are ok.
The same timer would next check then clear the "I'm Alive" flag. If the timer notices too often that neither flag is set, then it can assume the offspring calculation died.

As has been noted earlier in this thread, there are many different solutions to this general problem, and some are better than others depending on what you are trying to accomplish, and which of the available tools you are comfortable with.

(I also think that upgrading from 5.5 is a good idea.)

Russ

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to