Multi-task exception recovery method and storage medium

A recovery method and multi-tasking technology, applied in the field of computer control, can solve problems such as system stuck

Pending Publication Date: 2021-11-19
FORYOU GENERAL ELECTRONICS
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a recovery method and storage medium for multi-task abnormality, which solves the technical problem that the existing multi-task scheduling system cannot restore the normal operation of abnormal task scheduling in time, resulting in the system being stuck

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-task exception recovery method and storage medium
  • Multi-task exception recovery method and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] For a recovery method for multitasking exceptions provided by an embodiment of the present invention, see figure 1 , figure 2 As shown, in this embodiment, steps S1 to S4 are included:

[0032] S1. Create a multi-task list according to multiple tasks running in parallel, specifically:

[0033] Obtain multiple tasks running in parallel, number and sort the tasks, and create a corresponding multi-task list. For example, the N tasks are Task(0), Task(1)...Task(N-1).

[0034] S2. Select one of multiple tasks as a task scheduler;

[0035] In this embodiment, after step S2, it also includes: pre-defining the timer in the watchdog for timing clearing of each task, when the task scheduler detects that there is a timer in the watchdog that cannot be cleared regularly (dog feeding) , then determine the abnormal task detected.

[0036] This embodiment adopts watchdog (watchdog timer) to carry out the cyclic detection of task abnormality, by regularly clearing the timer of th...

Embodiment 2

[0063] The embodiment of the present invention also provides a storage medium, on which a computer program is stored, and the computer program is used to implement the method for recovering from a multi-task exception provided in the above embodiment. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access device (Random Access Memory, RAM), and the like.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of computer control, and provides a multi-task exception recovery method and a storage medium, and the method comprises the steps: creating a multi-task list according to a plurality of tasks needing to run in parallel; selecting one of a plurality of tasks as a task scheduler; when the task scheduler detects an abnormal task, obtaining a target backup task according to a preset backup mechanism; recovering task abnormity according to the target backup task and the multi-task list, and backing up a new backup task again; on the basis of an existing task exception backup recovery mechanism, additionally arranging a task to serve as a task scheduler, automatically detecting task exception, carrying out exception recovery, when it is determined that an exceptional task is detected, triggering a preset backup mechanism to automatically obtain a target backup task to recover the task exception, and avoiding the task exception situation occurring in a system; ensuring normal execution of all system tasks; and meanwhile, according to a new backup task which is backed up again, providing unexpected needs for the next system task abnormity.

Description

technical field [0001] The invention relates to the technical field of computer control, in particular to a recovery method and a storage medium for multi-task abnormalities. Background technique [0002] At present, with the rapid development of the Internet, there are more and more types of tasks that need to be performed on the network. In traditional task running methods, multiple tasks are mostly run in parallel to improve operating efficiency. Each task can be executed efficiently when the machine used to run the task is in a healthy state. [0003] However, in the existing task scheduling mechanism, due to hardware processing speed limitations, scheduling timing issues, synchronization lock deadlocks and other issues, multi-task scheduling often freezes, causing the entire system to freeze and restart. [0004] In order to solve the problem of task stuck, it is necessary to restore the normal operation of the task as much as possible. Contents of the invention ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F11/07
CPCG06F9/485G06F11/0757
Inventor 丁欣
Owner FORYOU GENERAL ELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products