Detection and processing method of endless loop task

An infinite loop detection and processing method technology, applied in the field of computer operating systems, can solve problems such as complex CPU resource detection methods, and achieve the effects of convenient troubleshooting, simple methods, and reduced CPU resource consumption.

Active Publication Date: 2013-06-19
MAIPU COMM TECH CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is: to propose a detection and processing method of an infinite loop task, to solve the probl

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
  • Detection and processing method of endless loop task
  • Detection and processing method of endless loop task
  • Detection and processing method of endless loop task

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0029] In view of the problem that the detection of infinite loop tasks in the traditional technology will occupy a large amount of CPU resources and the detection method is complicated, the present invention proposes a detection and processing method for infinite loop tasks. The basic idea of ​​the present invention is: the priority of non-time slice rotation In a preemptive operating system, as long as high-priority tasks do not block or actively give up the CPU, then low-priority tasks or other tasks of the same priority cannot be scheduled. Infinite loop tasks will occupy a large amount of CPU resources. The specific manifestation is the longest cumulative running time of the endless loop task;

[0030] Therefore, in the implementation process of the present invention, the infinite loop monitoring task with the highest priority and the infinite loop test task with the lowest priority are generated, and the task control block list based on priority is constructed through the in...

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 a computer operating system, discloses a detection and processing method of an endless loop task in the computer operating system, and solves the problems that detection of the endless loop task occupies lots of central processing unit (CPU) source and a detection method is complex in the traditional technology. The detection and processing method of the endless loop task is characterized in that a. generating an endless loop monitoring task with a highest priority and an endless loop detection task with a lowest priority of all tasks in the system; b. using the endless loop monitoring task and the endless loop detection task to detect if an endless loop appears in a task of the system, if the endless loop appears, then entering step c, or returning to step b; c. locating the task in which the endless loop appears in the system; d. suspending the task in which endless loop appears through the endless monitoring task, analyzing and searching the location of the endless loop; e. and releasing the relative source. The detection and processing method of the endless loop task is suitable for the operating system based on priorities.

Description

technical field [0001] The invention relates to a computer operating system, in particular to a detection and processing method of an infinite loop task in the computer operating system. Background technique [0002] The detection and processing of infinite loop tasks in computer operating systems is a very important technology. Application No. 01112526.8 "Method of Processing Infinite Loop under Real-time Multi-tasking" describes a monitoring and processing method for the abnormal running of tasks in real-time multi-task system and the occurrence of infinite loop or quasi-infinite loop. The basic idea is Yes: Use the system clock interrupt service routine ISR and the task switching hook function to monitor the running time of the task. If it is detected that the running time of a certain task is greater than the set threshold, it is considered that the task has an infinite loop; this method will consume a lot of time. CPU resources. [0003] Similar to the above-mentioned...

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
IPC IPC(8): G06F11/36
Inventor 何三波
Owner MAIPU COMM TECH CO LTD
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