Auto-restarting Child Processes via SQL Detection
Find Innovative SolutionsGenerate 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
Engineering 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
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.
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.
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
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.
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.
3Reliability
If a database administrator manually restarts a terminated process, then the process can continue its tasks, but human error and delays occur
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.
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.
Data Source
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.


