Method for testing closed loop or similar closed loop task

A detection method and an infinite loop technology, applied in the field of computer operating systems, can solve problems such as excessive consumption of system resources, achieve the effect of low processing frequency and save CPU resources

Inactive Publication Date: 2006-08-02
BEIJING MAIPU HUAXIN INFORMATION TECH
View PDF1 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The technical problem to be solved by the present invention is: to overcome the problem of excessive consumption of system resources when detecting dead-loop or quasi-dead-loop tasks in the prior art, and propose a detection method that saves system resources

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 for testing closed loop or similar closed loop task
  • Method for testing closed loop or similar closed loop task

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention utilizes the operating system principle of non-time-slice rotation priority preemptive operating system, as long as high-priority tasks do not block or voluntarily give up the CPU, then low-priority tasks and other tasks of the same priority cannot be scheduled. according to figure 1 As shown in the flow chart, the present invention generates an infinite loop monitoring task with the highest priority of the system and an infinite loop test task with the lowest priority of the system during the implementation process. The dead loop monitoring task obtains the notification given by the dead loop test task through a certain period of time, so as to monitor the scheduling of system work tasks; once a work task enters an infinite loop or a quasi-infinite loop, because its priority is higher than that of the dead loop monitoring The task is low, but higher than the infinite loop test task, so the infinite loop test task cannot be scheduled, but the infin...

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

An infinite loop or infinite loop like task detection method refers to computer operation system field, especially infinite loop task detecting and processing technology. Present invention overcomes problem of more system resources wasting in current infinite loop or infinite loop like technical detection, determining infinite loop or infinite loop like task and calling system task storehouse accuracy positioning infinite loop position through generating system highest priority infinite loop monitoring task and system lowest priority infinite loop test task. In priority occupying type operation system, present invention only uses two simple tasks effectively detecting infinite loop or infinite loop like task without utilizing system clock interruption handling and task switching processing, to judge whether infinite loop or infinite loop like occurred, having small process frequency and saving CPU resource.

Description

technical field [0001] The invention relates to the field of computer operating systems, in particular to the detection and processing technology of the dead cycle task in the task management and monitoring of the operating system. Background technique [0002] In the computer operating system, the detection and processing of the infinite loop task is a very important technology. Invention patent "01112526.8 Infinite loop processing method under real-time multi-tasking" published in China on February 25, 2004 describes a kind of monitoring and control method for the abnormal operation of tasks in a real-time multi-tasking system. Approach. The specific method of this patent is to set the system clock interrupt, use the system clock interrupt service program ISR to monitor the running time of the task, set a threshold for the task to run overtime, when the task running time exceeds the threshold, it means that the task enters an endless loop or similar Infinite loop. The p...

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 BEIJING MAIPU HUAXIN INFORMATION TECH
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