Auto-restarting Child Processes via SQL Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In database systems, processes are inefficiently terminated due to prolonged waiting for shared resources, leading to wasteful processor usage and the need for manual restarts, which are prone to human error and delays.

Innovation Solution

An auto-restart system that uses task control blocks to detect abnormal termination of child processes and automatically restart them without human intervention, utilizing shared resources and checkpoints to ensure seamless continuation of tasks.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of energy

If a process is automatically terminated after waiting too long for a shared resource, then computing power is conserved by reducing repetitive checking, but the process cannot continue its tasks when the resource becomes available

Engineering Contradiction:
Improvecomputing powerVSAvoidprocess continuity
Core Design Contradiction:
Loss of energyVSReliability

Solution Approach 1:

The terminated process automatically restarts itself when the shared resource becomes available, without requiring manual intervention from a database administrator. The system monitors the resource availability and triggers the process restart automatically, allowing the process to serve itself and continue its tasks.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system implements a monitoring mechanism that detects when a shared resource becomes available and provides feedback to trigger the automatic restart of the terminated process. This feedback loop ensures the process resumes execution only when the resource is ready, maintaining system reliability.

Inventive Principle:
Principle #23Feedback

2Speed

If a process repeatedly checks the availability of a locked shared resource, then the process can proceed as soon as possible when the resource becomes available, but processor power is used inefficiently

Engineering Contradiction:
Improveprocess response timeVSAvoidprocessor power
Core Design Contradiction:
SpeedVSUse of energy by moving object

Solution Approach 1:

Instead of continuous checking, the system uses periodic monitoring where the process is terminated after a predetermined time period of waiting. The process then restarts periodically when the resource becomes available, reducing processor power consumption while still maintaining system responsiveness.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The system performs preliminary monitoring to detect when a process has been waiting too long for a shared resource. Before the process can consume excessive processor power through continuous checking, the system preemptively terminates it and sets up automatic restart conditions, preventing wasteful processor usage.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If a database administrator manually restarts a terminated process, then the process can continue its tasks, but human error and delays occur

Engineering Contradiction:
Improveprocess continuationVSAvoidrestart delay
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system eliminates the need for manual intervention by implementing automatic process restart functionality. When a shared resource becomes available, the system automatically restarts the terminated process without requiring a database administrator to manually intervene, preventing both human error and delays.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system introduces an automatic restart mechanism as an intermediary between resource availability and process continuation. This intermediary monitors resource status and automatically triggers process restart, eliminating the need for human administrators to manually restart processes and reducing both error and delay.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS9021485B2Automatically restarting a first child process based on presence of SQL code in a list
Publication Date: 2015.04.28 WALMART APOLLO LLC
  • US9021485B2 patent drawing
  • US9021485B2 patent drawing
  • US9021485B2 patent drawing

AI summary

Systems and methods for auto-restarting abnormally terminated processes are disclosed. An auto-restart system can include a parent task control block, a child process, and a shared resource. The parent task control block can spawn the child process. The child process can operate on the shared resource. When the child process finds the shared resource locked, the child process can terminate abnormally. The parent task control block can recognize the abnormal termination of the child process, and can automatically rollback and restart the child process. Accordingly, the child process can be restarted to operate on the shared resource without human intervention.