A task scheduling method and device
A task scheduling and task technology, applied in the computer field, can solve the problems such as the inability to view task information in the scheduling scheme, the inefficiency of the task scheduling process, and the inability to achieve transparent task management, 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] Suppose the current time is 0, and then the current task list is the task list corresponding to the 0th time. The task execution period of the current task is 1 day, that is, the task execution period is 24 hours, that is, the task is currently executing 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 the task is executed is:
[0073] y=(0+86400)mod 86400=0
[0074] The initial task period of this task is identified as:
[0075] m=ceil(86400 / 86400)=1
[0076] Furthermore, the task list corresponding to the next time the task is executed is still the task list corresponding to the 0th time, and the task record and the corresponding initial task period identifier 1 are added back to the task list corresponding to the 0th time.
[0077] Subsequently, in the next unit cycle, when the current time enters the 0th time, scan the task ...
Embodiment b
[0079] Suppose the current time is any time, for example, the current time is 68745, that is, the current time is 19:5:45, and the current task list is the task list corresponding to the 68745th time. The task execution period of the current task is 1 day, that is, the execution cycle of the task is 24 hours, that is, the task currently being executed 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 the task is executed is:
[0081] y=(68745+86400)mod 86400=68745
[0082] The initial task period of this task is identified as:
[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 period identifier 1 are added back to the task list corresponding to the 68745th ...
Embodiment c
[0088] Suppose the current time is 4800, that is, the current time is 1:20, and the current task list is the task list corresponding to the 4800th time. The task execution period of the current task is 5 hours, that is, the task currently being executed is every Execute once 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 the task is executed is:
[0090] y=(4800+18000)mod 86400=22800
[0091] The initial task period of this task is identified as:
[0092] m=ceil(18000 / 86400)=1
[0093] Furthermore, the task list corresponding to the next time the task is executed is the task list at time 22800 (6:20), and the task record and the corresponding initial task cycle identifier 1 are added to the task list at time 22800 (6:20) task list.
[0094] Subsequently, as time goes by, when the current time enters the 22800th time (6:20), scan the task list at the 22800...
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