Super Handling Routine for Critical Exception Recovery

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current exception handling mechanisms fail to effectively manage critical problem exceptions such as specific interrupt exceptions, infinite loop exceptions, and out of memory exceptions, which can lead to application termination without providing an opportunity for recovery.

Innovation Solution

A computer-implemented method and system that detects critical problem exceptions and invokes a Super Handling Routine (SHR) registered by the application, allowing the SHR to handle these exceptions by transferring control and context to the SHR for appropriate action, such as terminating an invoked application, breaking infinite loops, or requesting additional memory.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If current exception handling mechanisms are used, then normal exceptions can be handled, but critical problem exceptions cause application termination without recovery opportunity

Engineering Contradiction:
Improveexception handling capabilityVSAvoidrecovery from critical exceptions
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The system performs preliminary action by pre-registering a Super Handling Routine (SHR) at a predetermined context before critical exceptions occur. When a critical exception is detected, the system immediately transfers control to the pre-registered SHR, enabling recovery without termination. This preliminary setup allows the application to handle critical problems like interrupt exceptions, infinite loops, and memory exhaustion that would otherwise cause abrupt termination.

Inventive Principle:
Principle #10Preliminary action

2Stability of the object's composition

If application terminates on critical exception, then system stability is maintained, but application recovery is prevented

Engineering Contradiction:
Improvesystem stabilityVSAvoidapplication continuity
Core Design Contradiction:
Stability of the object's compositionVSReliability

Solution Approach 1:

The Super Handling Routine (SHR) acts as an intermediary between critical exceptions and application termination. When a critical exception occurs, control is transferred to the SHR which serves as a mediator to handle the exception appropriately. The SHR can break infinite loops, manage interrupt exceptions, request additional memory, or terminate invoked applications, thereby maintaining system stability while enabling application recovery without abrupt termination.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If SHR is invoked for critical exceptions, then application recovery is enabled, but additional processing overhead is introduced

Engineering Contradiction:
Improveexception recoveryVSAvoidexception handling time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary action by pre-registering the Super Handling Routine (SHR) at a predetermined context before critical exceptions occur. This pre-registration eliminates the need for complex search or selection processes when an exception occurs, allowing immediate transfer of control to the appropriate SHR. The pre-configured approach reduces processing overhead and time loss compared to dynamic exception handler selection, enabling fast recovery from critical exceptions.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11675651B2Critical problem exception handling
Publication Date: 2023.06.13 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11675651B2 patent drawing
  • US11675651B2 patent drawing
  • US11675651B2 patent drawing

AI summary

Methods, apparatus, computer program products for handling critical problem exceptions during an execution of an application are provided. The method comprises: detecting, by one or more processing units, an occurrence of a certain type of critical problem exception during an execution of an application, the critical problem exception resulting in a termination of the application; instructing, by one or more processing units, to call a Super Handling Routine (SHR) corresponding to the type of the critical problem exception at a pre-configured address based on a pre-determined context registered by the application, the SHR being configured to handle critical problem exceptions; and handing, by one or more processing units, control to the SHR to handle the type of the critical problem exception.