Multi-tasking queue scheduling method based on thread pool
A queue scheduling and task queue technology, applied in the field of computer engineering, can solve problems such as improper logic design of scheduling methods, large maintenance difficulty and difficult maintenance of multiple programmers, and achieve good process or thread number scalability, easy implementation, Reasonable effect of logical design
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0048] like Figure 1-3 As shown, a thread pool-based multi-task queue scheduling method includes the following steps:
[0049] (1) Create a corresponding task queue for each task type, and record them as TQ1, TQ2, ..., TQn;
[0050] (2) Create one or more task dispatchers, receive tasks and dispatch them to the corresponding task queue according to the task type; the task dispatcher is an independent process or thread;
[0051](3) Initialize the worker thread pool, and the idle worker thread enters the sleep state; the worker thread pool creates more than one worker thread, and the worker thread is not directly associated with the task queue;
[0052] (4) When the task dispatcher receives a certain type of task Ti, it finds its corresponding task queue TQi, and judges whether the tasks to be executed in the task queue are empty; the tasks to be executed include unexecuted tasks and ongoing tasks Tasks performed but not completed;
[0053] (5) If the task to be executed in ...
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