EP0959406A2

Method and apparatus for providing for notification of task termination in an information handling system

Abstract

A method and apparatus for ensuring that a process interacting with a failing process is notified of the failure of that process. Each process has a unique process identifier (PID) associated with it. Each process optionally has an affinity list containing one or more entries, each of which contains the identifier of a process that is to be notified when the process fails. A process updates the affinity list of a target process (either itself or another process) by calling an affinity service of the operating system (OS) kernel, specifying the type of operation (add or delete), the identifier of the target process, the identifier of the process that is to notified, and the type of event that is to be generated for the process that is to be notified. When a process fails, a process termination service of the OS kernel examines the affinity list of the failing process and, for each entry in the list, generates an event of the specified type for the process specified as to be notified.

EP0959406A2, drawing sheet 1
Sheet 1 of 6

Term

Term ended

Projected expiry passed 21 April 2019, 7.4 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

15 claims: 5 independent, 10 dependent

  1. 1
    A method of providing for notification of task termination in an information handling system having a plurality of interacting tasks, the method comprising the steps of:defining for each of one or more target tasks an affinity list containing one or more entries for other tasks that are to be notified on termination of the target task;in response to receiving an affinity request specifying a target task and another task, adding an entry for the other task to an affinity list defined for the target task;and in response to detecting a termination of a target task, notifying each other task contained in the affinity list defined for the target task.
  2. 5
    The method of any preceding claim in which the adding step comprises the steps of:determining whether an affinity list is already defined for the target task;if an affinity list is already defined for the target task, adding an entry for the other task to the affinity list defined for the target task;and if an affinity list is not already defined for the target task, defining an affinity list for the target task and adding an entry for the other task to the affinity list defined for the target task.
  3. 6
    The method of any preceding claim in which the tasks are processes having separate address spaces.
  4. 10
    Apparatus for providing for the notification of task termination in an information handling system having a plurality of interacting tasks, the apparatus comprising:means for defining for each of one or more target tasks an affinity list containing one or more entries for other tasks that are to be notified on termination of the target task;means responsive to receiving an affinity request specifying a target task and another task for adding an entry for the other task to an affinity list defined for the target task;and means responsive to detecting a termination of a target task for notifying each other task contained in the affinity list defined for the target task.
  5. 13
    A computer program element comprising computer program code means executable by the computer to:define for each of one or more target tasks an affinity list containing one or more entries for other tasks that are to be notified on termination of the target task;in response to receiving an affinity request specifying a target task and another task, add an entry for the other task to an affinity list defined for the target task;and in response to detecting a termination of a target task, notify each other task contained in the affinity list defined for the target task.