Timer setting method under multithreading environment
A timer and multi-thread technology, applied in the direction of multi-program devices, etc., can solve the problems that the system time performance is very large, the system space overhead is not large, etc., and the setting method is simple and easy to understand.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Embodiment one, see figure 1 .
[0044] The present invention provides a method for setting a timer based on a multi-threaded environment. The setting method includes an index data structure and two doubly linked lists, wherein:
[0045] The index data structure is used to: quickly find the timer unit according to the unique identifier (timerID) of the timer unit;
[0046] The doubly-linked list 1 is used to: connect all timer units in series according to the order of timing triggering, and the overtime value of the timer unit can be recorded in the timer unit in increments; for setting a new timer The insertion position of the new timer can be effectively found at the time; it is convenient for the timer execution thread to regularly scan the timer unit to determine whether the timer unit arranged at the head of the linked list should be triggered to time out; it is convenient for the timer execution thread to regularly update the timer unit The timeout value;
[00...
PUM
Abstract
Description
Claims
Application Information
- 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