A scheduling method for timer
A scheduling method and timer technology, applied in multi-programming and other directions, can solve the problems of high search efficiency and unsatisfactory effect of binary tree, and achieve the effect of ensuring time utilization, good maintainability, and providing flexibility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0036] The basic idea of the present invention is: set the reference timer and the sparse matrix used for timer management, place the timers used by users or services in the corresponding positions of the sparse matrix according to the duration of the timers, and place the sparse matrix where the timers are not placed Set the element to zero; each time the benchmark timer times out, judge whether the value of the matrix element corresponding to the current moment in the sparse matrix is zero, if not zero, it means that this position contains a timer, and all timers under the element Perform timeout processing; if zero, wait for the next benchmark timer timeout trigger.
[0037] Here, the reference timer is a timer with a fixed duration, and the reference timer is registered with the core part of the current application system, and the reference timer is repeatedly triggered at a fixed time interval. The sparse matrix is a data structure used for timer management created ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 