Method for planing dispatching timing task
A technology for timed tasks and planning, applied in the field of communication, can solve the problems of time drift, lack of flexibility, time jump, etc., and achieve the effect of solving correction problems, solving time drift, and ensuring accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0049] The first embodiment provided by the present invention, such as figure 2 shown, including:
[0050] In step S201, the main thread registers a timed task, specifies a timed iterator, and puts the timed task into a task queue.
[0051] Step S202, waking up all the background threads in the waiting state, and then ending the main thread.
[0052] Step S203, the awakened background threads participate in thread competition, and only one background thread obtains the right to schedule timed tasks.
[0053] When it is confirmed that the task queue is not empty, step S204 is executed, that is, the background thread that acquires the right to schedule a timed task takes out the timed task with the earliest execution time from the task queue;
[0054]Step S205, judging whether the execution time of the fetched timing task is greater than the current time, if greater than the current time, execute step S206, that is, wait, the waiting time is the execution time minus the curre...
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