Script issuing scheduling method based on time wheel
A scheduling method and time wheel technology, applied in the field of data structures, can solve the problems of wasting cpu resources, task delay, inaccurate task execution time, etc., and achieve the effect of improving time accuracy, speeding up search speed, and punctual task execution.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] A method for dispatching scripts based on a time wheel in this embodiment, such as figure 1 As shown, the data structure of the time wheel is used to simplify the scheduling time complexity of scheduled tasks and periodic tasks, so as to achieve efficient scheduling of tasks and reduce system resource overhead. The execution is more punctual, and the call time error of high-priority tasks is reduced. Take the bastion host as an example. As a security device, the bastion host has some scheduled and periodic tasks, such as regularly detecting asset status, regularly collecting asset resource status, and periodically executing scripts and other tasks. And most of these tasks are periodic tasks, and there are some scheduled tasks, the longest period of which will not exceed one year. If you use third-party components to complete task scheduling, some third-party components cannot fully meet the requirements, and some large and comprehensive third-party components will cons...
Embodiment 2
[0051] This embodiment is further optimized on the basis of Embodiment 1. Using the bastion machine as an example, the maximum execution period of the bastion machine is year, so the maximum disk of the time wheel is the month hand wheel, and the weekly cycle is also a common requirement, so a total of Second, minute, hour, day, week, month 6 types of wheels, and the day wheel due to the size of the month and leap year, so there will be 4 day wheels, the size is 28, 29, 30, 31, a total of 11 time settings wheel. Other parts of this embodiment are the same as those of Embodiment 1, so details are not repeated here.
Embodiment 3
[0053] This embodiment is further optimized on the basis of the above-mentioned embodiment 2. Taking the bastion host as an example, the common tasks in the bastion host are mainly divided into two categories, one is a timing task, which does not need to be executed after one execution, and the other The class is a periodic task, which is executed every cycle. Other parts of this embodiment are the same as those of Embodiment 1 or 2 above, so details are not repeated here.
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