A real-time embedded system timer management method

An embedded system and management method technology, applied in the field of real-time embedded system timer management, can solve the problems affecting the real-time performance of the system and consume CPU resources, and achieve the effects of reducing the number of calculations, reducing CPU resource consumption, and improving real-time performance

Inactive Publication Date: 2011-12-07
BEIJING HUAYUAN TECH
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the system software is huge and the number of timers is very large, the polling method will require a lot of calculation and processing, which will seriously consume CPU resources and affect the real-time performance of the system.

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
  • A real-time embedded system timer management method
  • A real-time embedded system timer management method
  • A real-time embedded system timer management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0012] The main idea of ​​the present invention is: sort all timers according to the order of timeout, and when the timeout time of the timers is the same, sort them according to the priority of the timers from high to low; The timer starts to check the timeout of the timer until it finds the first timer that has not timed out; put all the timed out timers into the timeout queue for corresponding timeout processing.

[0013] see figure 1 , figure 1 It is a schematic flow chart of a real-time embedded system timer management method in an embodiment of the present invention, and the method includes the following steps:

[0014] Step 101, pre-create a doubly-linked list for managing timers.

[0015] In this step, a doubly linked list i...

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 a real-time embedded system timer management method, the method comprising: using a doubly linked list to uniformly manage all timers, each timer corresponding to a timer node in the doubly linked list; In the linked list, all timer nodes are sorted in the order of timeout, and when the timer timeout time is the same, they are sorted according to the priority of the timer from high to low; when the timing period is reached, start from the first timeout timer Check the timeout of the timer until you find the first timer that has not timed out; put all the timed out timers into the timeout queue for corresponding timeout processing. The application of the present invention can reduce the consumption of CPU resources and improve the real-time performance of the system.

Description

technical field [0001] The invention relates to the technical field of embedded system timer management, in particular to a real-time embedded system timer management method. Background technique [0002] The main function of the timer is to control the time interval and indicate the end of the time interval to achieve the purpose of accurate time control. In real-time embedded system software, the management of general-purpose timers usually adopts a polling detection mechanism. When the timing period arrives, the counting number of each timer is subtracted by one. If the counting number of the timer is If it is 0, it is determined that the timer has expired, and corresponding timeout processing will be performed. The polling timer management method is relatively simple and easy to implement. However, when the system software is huge and the number of timers is very large, the polling method will require a lot of calculation and processing, which will seriously consume CP...

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): G06F9/48
Inventor 邢文飚
Owner BEIJING HUAYUAN 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