Method for real-time operating system to avoid interrupt occupying excess CPU resources

A real-time operating system and CPU resource technology, applied in resource allocation, multiprogramming, etc., can solve problems such as frequent interruptions, poor user experience, and other tasks cannot be run, so as to suppress frequently generated interruptions and avoid being occupied effect

Inactive Publication Date: 2011-04-06
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this process is that in some system environments (such as network devices such as switches, when they are attacked, a large number of messages will be sent to the CPU, and quite frequent interrupts for receiving messages will occur), and the interrupts will be generated very frequently. , resulting in almost no chance for other tasks to run
If these tasks are user interface related tasks, then such a situation can lead to a very bad user experience
In the original process model, the real-time operating system itself does not provide a mechanism to avoid this situation
[0015] To solve this problem, the existing solution is to artificially limit the number of interrupts generated, but this method cannot make dynamic adjustments according to the CPU resource occupation of the current system, and the adaptability is not strong

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 real-time operating system to avoid interrupt occupying excess CPU resources
  • Method for real-time operating system to avoid interrupt occupying excess CPU resources
  • Method for real-time operating system to avoid interrupt occupying excess CPU resources

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0041] Introduce solution thinking of the present invention below:

[0042] First, an information database of CPU resource occupancy is established based on each type of interrupt. From the generation of the interrupt to the end of the execution of the interrupt service routine, the position of the time window corresponding to this period is marked as occupied. After the interrupt service program is processed, according to the CPU occupation information database of the interrupt, and according to the proportion of the interrupt time recorded above in the time window, it is judged whether the interrupt occupies too much CPU in the set recent time window. CPU resources. When the proportion of CPU resources occupied by 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 present invention provides a method for avoiding frequent interruption to occupy excess CPU resources in a real-time operation system, the method includes: a threshold is provided for each type interruption respectively, the threshold is a maximum ratio of the interruption time generated by the CPU allowance the type interruption to the whole interruption time; when the interrupt of the type is coming, CPU judges the ratio of the interruption time generated by the type interruption to the whole interruption time achieving the threshold set corresponding to the type interruption or not, ifyes, shielding the type interruption; if not, continuous executing the interruption process. The invention leaves from the whole global of occupying condition of CPU resource, planning the CPU occupation of the interruption, and actively processing interruption and inhibition, effectively inhibiting frequent interruption, avoiding the excess occupation of CPU resource, achieving the effect of balancing utilization of system CPU resource.

Description

technical field [0001] The present invention relates to a real-time operating system in the field of computers, and in particular to a real-time operating system that performs active interrupt shielding according to the calculation of the frequency of frequently occurring interrupts, transfers CPU resources, and enables other tasks to run, avoiding the real-time operating system. Frequent interrupts take up too many CPU resources. Background technique [0002] In a real-time operating system (Real Time Operating System, RTOS), the word real-time means that there are strict requirements on response time. The real-time operating system is expensive in real time, and requires certain operations to be completed within a specified time, and is mainly used in industrial control. The number of general tasks in a real-time operating system is fixed, and it must be guaranteed to complete specific functions within a certain time limit. Typically, a real-time operating system must ha...

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 Patents(China)
IPC IPC(8): G06F9/50
Inventor 俞培源
Owner BEIJING XINWANG RUIJIE NETWORK 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