Interrupt handling method and device

A processing method and a technology for processing threads, which are applied in the direction of multi-program device, program startup/switching, etc., can solve the problems of wasting CPU resources, wasting CPU resources, increasing lost interrupts, etc., and achieve the effect of reducing the probability of interrupt loss

Active Publication Date: 2011-02-16
北京中星天视科技有限公司
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The first program judges the interrupt flag in an endless loop, but the time of the interruption is uncertain, so when the time is very long, the endless loop will waste CPU resources, thereby reducing CPU efficiency
[0007] For avoiding the waste of CPU resources, prior art 2 can revise this interrupt identification in interrupt processing program after interrupt comes, and, according

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
  • Interrupt handling method and device
  • Interrupt handling method and device
  • Interrupt handling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0053] refer to figure 1 , which shows a flowchart of an embodiment of an interrupt processing method according to the present invention, which may specifically include:

[0054] Step 101, for interruption, establish a corresponding function processing thread, and the initial state of the function processing thread when it is established is not opened;

[0055] The embodiment of the present invention can be applied to the processing of various interrupts, for example, it can be various external interrupts such as clock interrupts, operator console interrupts, CPU-to-CPU communication interrupts in multiprocessor systems, or hardware interrupts. Internal interrupts caused by errors (such as sudden power failure, parity error, etc....

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 provides an interrupt handling method and an interrupt handling device. The method comprises: establishing a corresponding function processing thread according to an interrupt, wherein the initial state on the establishment of the function processing thread is closed; when the interrupt occurs, activating the corresponding function processing thread; running the function processing thread; and when the running of the function processing thread is finished, suspending or closing the function processing thread. The invention is used for saving CPU resources and improving CPU efficiency.

Description

technical field [0001] The present invention relates to the technical field of interrupt processing, in particular to an interrupt processing method and device. Background technique [0002] An interrupt is an internal mechanism for a computer system to deal with internal or external events in real time. When some internal or external event occurs, the interrupt system will force the CPU to suspend the program being executed and turn to process the interrupt event. After the interrupt is processed, it returns to the interrupted program and continues to execute. Wherein, the processing program for processing interrupt events is called an interrupt processing program. [0003] Usually, there is a register inside the CPU, and the "binary information" stored in this register is specially used to describe the interrupt status of whether an interrupt has occurred. This interrupt status is also called the interrupt flag flag. For example, flag=0 describes no interrupt , flag=1 de...

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): G06F9/48
Inventor 冯备战
Owner 北京中星天视科技有限公司
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