Task scheduling method and device
A task scheduling and task technology, applied in the computer field, can solve the problems of inability to achieve transparent task management, inability to view task information in the scheduling scheme, and low efficiency of the task scheduling process, so as to achieve transparent management, improve scanning efficiency and task execution. Efficiency, downsizing effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment a
[0071] Let the current time be 0, and then the current task list is the task list corresponding to the 0th time. The task execution cycle of the currently executing task is 1 day, that is, the execution cycle of the task is 24 hours. That is to say, the currently executing task The task is executed every 24 hours. The execution cycle of the task is expressed in seconds as 24×60×60=86400, and the unit cycle is expressed in seconds as 24×60×60=86400
[0072] Then, the next time to execute the task is:
[0073] y=(0+86400)mod86400=0
[0074] The task's initial task period ID is:
[0075] m=ceil(86400 / 86400)=1
[0076] Furthermore, the task list corresponding to the next execution time of the task is still the task list corresponding to the 0th time, and the task record and the corresponding initial task cycle identifier 1 are added back to the task list corresponding to the 0th time.
[0077] Then, in the next unit period, when the current moment enters the 0th moment, scan t...
Embodiment b
[0079] Let the current time be any time, for example, the current time is 68745, that is, the current time is 19:05:45, and then the current task list is the task list corresponding to the 68745th time, and the task execution cycle of the currently executing task is 1 day, that is, the execution period of the task is 24 hours, that is, the currently executing task is executed every 24 hours. The execution cycle of the task is expressed in seconds as 24×60×60=86400, and the unit cycle is expressed in seconds as 24×60×60=86400
[0080] Then, the next time to execute the task is:
[0081] y=(68745+86400)mod86400=68745
[0082] The task's initial task period ID is:
[0083] m=ceil(86400 / 86400)=1
[0084] Furthermore, the task list corresponding to the time when the task is executed next time is still the task list corresponding to the 68745th time, and the task record and the corresponding initial task cycle identifier 1 are added back to the task list corresponding to the 6874...
Embodiment c
[0088] Let the current time be 4800, that is, the current time is 1:20, and then the current task list is the task list corresponding to the 4800th time, and the task execution cycle of the currently executing task is 5 hours, that is, the currently executing task is every Execute every 5 hours. The execution cycle of the task is expressed in seconds as 5×60×60=18000, and the unit cycle is expressed in seconds as 24×60×60=86400
[0089] Then, the next time to execute the task is:
[0090] y=(4800+18000)mod86400=22800
[0091] The task's initial task period ID is:
[0092] m=ceil(18000 / 86400)=1
[0093] Then, the task list corresponding to the next execution time of the task is the task list at the 22800th moment (6:20), add this task record and the corresponding initial task cycle identifier 1 to the 22800th moment (6:20) task list.
[0094] Then, as time goes by, when the current moment enters the 22800th moment (6:20), scan the task list at the 22800th moment (6:20), at...
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