Universal timed task management realization method
A timing task and implementation method technology, applied in the direction of program startup/switching, multi-program device, etc., can solve the problems of complex programming and difficulty in ensuring that timing signals are triggered on time, and achieve the effect of simple operation and convenient integration
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0024] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0025] Such as figure 1 , 2 shown.
[0026] A method for implementing general scheduled task management, comprising the following steps:
[0027] First, set up a manager such as figure 1 As shown), the manager consists of a synchronous ordered queue and multiple producer and consumer threads; the scheduled tasks are stored in the queue by the producer to form a queue manager, and then executed regularly by the consumer thread;
[0028] Secondly, let the above-mentioned queue manager manage different timed tasks in it through a synchronous and ordered queue. The tasks in the queue are sorted in ascending order according to the execution time. Every time a task is added to the queue, a notification will be triggered, and by inserting Sorting guarantees that the order of the queue does not change. The queue uses a mutex to ensure that only one thread ...
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