摘要 |
<p><P>PROBLEM TO BE SOLVED: To restore a program to its normal state without depending on an operator's control nor having to initialize an entire system. <P>SOLUTION: A self-diagnostic function, comprising a process which waits for periodic event messages from a main thread by operating on a sub-thread different from the main thread on which the original process operates, and another process operating on the main thread to receive periodic timer messages produced by a timer operating on the main thread, to report events periodically to that process, is incorporated into the program to allow the program itself to detect errors and to terminate itself in the event of error. Then it is monitored whether or not the program has terminated because of error, and if it has terminated because of error, then it is determined whether the program terminated can be restarted. Based on the result, the program terminated because of error is restarted. <P>COPYRIGHT: (C)2004,JPO</p> |