Infinite loop or similar infinite loop detection method in multitask system

An infinite loop detection and detection method technology, applied in the computer field, can solve the problems of complex detection and high consumption of system processor resources, and achieve the effects of simple method, reduced consumption, and convenient troubleshooting.

Active Publication Date: 2012-08-01
MAIPU COMM TECH CO LTD
View PDF8 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to overcome the shortcomings of excessive consumption of system processor resources and relatively complicated detection when detecting dead loops or quasi-death loop tasks, and provide a detection method for dead loops or quasi-death loops in multi-tasking systems

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
  • Infinite loop or similar infinite loop detection method in multitask system
  • Infinite loop or similar infinite loop detection method in multitask system
  • Infinite loop or similar infinite loop detection method in multitask system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0033] The present invention utilizes the principle that in the non-time slice rotation priority preemptive operating system, as long as the high priority task does not block or voluntarily transfers the processor, then the low priority task or other tasks of the same priority cannot be scheduled. The present invention generates an infinite loop monitoring task with the highest priority and an infinite loop test task with the lowest priority during the implementation process. In this example, set the priority of tasks in the system to be 0 to 100, with priority 0 being the lowest and priority 100 being the highest;

[0034] The vxWorks operating system is a non-time slice rotation priority preemptive operating system, which is used as an example in this example.

[0035] In the vxWorks operating system, the task control block is the data structure of the operating system management task, and there is a priority field in the task control block. In the present invention, for the...

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 technology. The invention solves the problems that too many system processor resources are consumed, and the detection process is complex in the conventional infinite loop or similar infinite loop detection task, and provides an infinite loop or similar infinite loop detecting method in a multitask system. The technical scheme comprises the steps of: firstly generating a highest priority infinite loop monitoring task and a lowest priority infinite loop detection task, wherein the infinite loop detection task runs and records the present moment after sleeping for a period of time, and the infinite loop monitoring task runs and detects whether the system is in the infinite loop or similar infinite loop after sleeping for a period of time, if so, the infinite loop task or similar infinite loop task is positioned and hung; then positioning and debugging the hung infinite loop task or similar infinite loop task by the system, recording information and performing subsequent treatment; and finally releasing the processed resources. The method has the advantages that the occupation rate of the processor resources is low, and the method is suitable for a preemptive priority type operation system cycled by non-time slice.

Description

technical field [0001] The present invention relates to computer technology, in particular to computer operating system technology. Background technique [0002] In the computer operating system, the detection and processing of dead loops are very important technologies. The patent number is 01112526.8, and the title is "Method for processing dead loops under real-time multitasking". In , a monitoring and processing method for a kind of infinite loop or infinite loop when the abnormal operation of the task occurs. The basic idea of ​​this patent is to use the system clock interrupt service routine ISR and the task switching hook function to monitor the running time of the task. If the task running time is greater than a certain threshold, it is considered that the task has an infinite loop. This method will consume a lot of processors. resource. Similar methods of system clock interrupt and task switching hook function to detect infinite loops have the same disadvantages. ...

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): 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