Method and device for processing abnormal tasks

A task and abnormal technology, applied in the computer field, can solve problems such as system chaos, multi-manpower and material resources, and automatic troubleshooting of abnormal tasks, so as to save manpower and material resources and prevent chaos or collapse.

Active Publication Date: 2017-08-25
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Under normal circumstances, since the tasks in the task list are executed sequentially, if an infinite loop or deadlock occurs in one task, subsequent tasks cannot be executed, and in severe cases, the entire system may fail.
[0004] In the prior art, when the task currently executed by the processor is abnormal, the processor cannot automatically troubleshoot the abnormal task, but will output the call stack information for the abnormal task, and then the programmer will The call stack information of the abnormal task is used to locate the error location of the abnormal task and perform troubleshooting, which will consume a lot of manpower and material resources
Moreover, when the abnormal task is serious, if the programmer cannot handle the abnormal task in time, the system may be confused or crashed, which will cause the processor to restart the system and affect the execution of normal tasks.

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
  • Method and device for processing abnormal tasks
  • Method and device for processing abnormal tasks
  • Method and device for processing abnormal tasks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0069] An embodiment of the present invention provides a method for processing task exceptions, which is used for processors, such as figure 1 As shown, the method includes:

[0070] Step 101, if the execution time of the current task is longer than the preset execution time, determine that the task has an infinite loop exception or a deadlock exception.

[0071] In practical applications, the preset execution time may be set according to specific circumstanc...

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 embodiment of the invention provides a method and a device for processing task exception, relates to the field of computers. The device is capable of carrying out automatic troubleshooting on task exception, and preventing a system from being mixed or broken down, so as to save manpower and material resources. The method for processing task exception is applied to a processor, and comprises the following steps: if the execution time of a current task is greater than preset execution time, determining the task to be in endless loop exception or deadlock exception; when determining the task to be in deadlock exception, releasing resources which are occupied by the task, and continuing to execute the task; when determining the task to be in endless loop exception, modifying codes of a loop body of the task or modifying the values of data variables in the loop body of the task, and continuing to execute the task. The method and the device provided by the embodiment of the invention are applied to processing of task exception.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for processing abnormal tasks. Background technique [0002] Operating System (OS) is a computer program that manages and controls computer hardware and software resources. Multiple small program modules can be run simultaneously in the operating system, and each program module can be called a task. Multiple tasks can be added to the task linked list in the order of execution, and then the processor executes the tasks in the order of the tasks in the task linked list. During the running of the task, due to some unpredictable reasons, illegal tasks may be executed. command, causing the task to fail to proceed normally, causing system confusion or crash. [0003] There are generally two situations for abnormal tasks: infinite loop and deadlock. An infinite loop is a loop that cannot be terminated under its own control. When a task is running, due to the ex...

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 & AuthorityPatents(China)
IPC IPC(8): G06F11/07
Inventor梁恩波
OwnerBEIJING XINWANG RUIJIE NETWORK TECH CO LTD