Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for processing timer events

A processing method and processing device technology, applied in the computer field, can solve problems such as low system efficiency and high power consumption, and achieve the effect of improving system efficiency and reducing system power consumption

Active Publication Date: 2019-05-07
QINGDAO HISENSE MOBILE COMM TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a method and device for processing timer events to solve the problems of low system efficiency and high power consumption caused by frequent timer events in 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 method and device for processing timer events
  • A method and device for processing timer events
  • A method and device for processing timer events

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0042] It should be noted that the operating system applied in the following embodiments may be a Linux operating system, or any other operating system with a timing trigger function.

[0043] In the following embodiments, a defined timer event includes at least an expiration time and a processing function, and a timer event is used to describe the time when an interrupt is triggered and the processing function to be executed after the 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 discloses a timer event processing method and device, used for solving the problems of being low in system efficiency and high in power consumption due to frequent Timer events of a system. The method comprises the following steps: determining the expectant expiration time and the maximum allowance delay time of a first timer event, and determining a time interval determined by the expectant expiration time and the maximum allowance delay time; if determining that the timer event, the expiration time of which is within the time interval, exists in an event list, selecting a second timer event, the expiration time of which is within the time interval, in the event list, and setting the expiration time of the first timer event as the expiration time of the second timer event; and adding the first timer event into the event list according to the set expiration time.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for processing timer events. Background technique [0002] In the early days of the Linux operating system, the operating system scheduling was implemented through periodic beats (TICK). The number of TICKs per second is defined by HZ. There are 100 TICKs per second, and a periodic TICK wake-up is realized through a 10 millisecond (ms) timer (Timer). In this mechanism, when the system has nothing to process, a Timer event triggers an interrupt every 10ms, causing the system to run unnecessary. [0003] In order to solve this problem, the NOHZ mechanism is adopted in Linux, which does not adopt the periodic TICK mechanism, but sets the Timer according to the Timer event of the system. [0004] Specifically, such as figure 1 As shown, when a timing function is required, a data structure Timer is defined, and the Timer event is initialized to clarify the exp...

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/48
CPCG06F9/4825Y02D10/00
Inventor 孔志强
Owner QINGDAO HISENSE MOBILE COMM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products