Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 problem that the detection of an infinite loop task in the traditional technology will occupy a large amount of CPU resources and the detection method is complicated

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

Embodiment Construction

[0029] Aiming at the problem that the detection of dead 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 of dead loop tasks. In a high-level preemptive operating system, as long as high-priority tasks do not block or voluntarily give up the CPU, 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 form is that the cumulative running time of the infinite loop task is the longest;

[0030] Therefore, the present invention generates an infinite loop monitoring task with the highest priority and an infinite loop test task with the lowest priority during implementation, and constructs a priority-based task control block list and registers a task switching hook with the system through the infinite loop monitoring task function, when the hook fu...

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More