The present invention provides a method for detecting a termination of a process
within a plurality of processes in a data processing system. A monitoring policy
is established, within the plurality of processes, wherein the monitoring policy
assigns a first process within the plurality of processes to monitor a second process
within the plurality of processes. Responsive to a termination of execution of
the second process, a cause of the execution termination is determined by the first
process. Responsive to a determination that the second process terminated execution
in an abnormal manner, the first process attempts to restart the second process.
Furthermore, the present invention provides a method for inserting a process within
a plurality of processes containing a first process and a monitoring policy in
a data processing system. A request is received from a second process to join the
plurality of processes. Responsive to the second process joining the plurality
of processes, the first process within the plurality of processes is selected to
monitor the second process. The monitoring policy is modified, wherein the monitoring
policy assigns the selected first process to monitor the second process for termination
of execution.