Optimization method and system of software timers
An optimization method and timer technology, applied in the field of computer communication, can solve the problems of occupying CPU resources, inaccurate timing of timer overtime callback processing, and low efficiency of timer management, so as to improve timing accuracy and reduce CPU occupation efficiency and improve operational efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] This embodiment provides a software timer optimization method, which is applied to several business modules that need to use timers. Each business module includes multiple timer instance objects. Please refer to figure 2 , shown as a flow chart of the softening method of the software timer, the optimization method of the software timer includes:
[0055] S1, generate a timer linked list index number for each business module that needs to use a timer, create a first timer array A[] that includes linked list array elements consistent with the number of business modules; define the total running time, and record it as T1 , that is, gTimerJiffies, and the time required for timeout processing of all timer instance objects at each moment, recorded as T2, that is, gAlignmentTime, and initializing T1 (gTimerJiffies) and T2 (gAlignmentTime) to zero. The timer instance object includes a first node pointer that records the nodes that exist in the linked list array elements in the...
Embodiment 2
[0068] This embodiment provides an optimization system 1 for a software timer, which is applied to several business modules that need to use timers. Each business module includes multiple timer instance objects. Please refer to Figure 5 , is shown as a schematic structural diagram of an optimization system for a software timer, and the optimization system for a software timer includes: a first creation module 11, a management module 12, a second creation module 13, a processing module 14, a first judgment module 15, The second judging module 16 , the third judging module 17 , the fourth judging module 18 , and the assignment module 19 .
[0069] The first creation module 11 is used to generate a timer linked list index number for each service module that needs to use a timer, and create a first timer array A[] that includes linked list array elements consistent with the number of service modules; definition The total running time is recorded as T1 and the time required for ti...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com