Task processing method and device and computer system
A task processing and task technology, applied in the field of task processing, can solve the problem that important tasks cannot be processed in time, and achieve the effect of intelligently and dynamically adjusting computing resources
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0062] Embodiment 1 of the present application provides a task processing method, such as figure 1 As shown, the method includes:
[0063] S11. Construct at least one high-priority thread according to the pre-stored computing capability quota information of the high-priority task, and construct at least one low-priority thread according to the pre-stored computing capability quota information of the low-priority task.
[0064] Quota information is the allocation information of the number of computing resources, for example, it may include the number of core high-priority threads, the maximum number of high-priority threads, and the like. Based on the quota information, a corresponding number of high-priority threads and low-priority threads can be constructed for subsequent processing of high- and low-priority tasks. This step is actually the allocation of computing resources to high and low priority tasks.
[0065] The aforementioned high-priority task computing capability ...
Embodiment 2
[0118] Embodiment 2 of the present application also provides a task processing device, such as Figure 7 As shown, the device includes:
[0119] A high-low priority thread construction unit 71, configured to construct at least one high-priority thread according to pre-stored high-priority task computing capability quota information and construct at least one low-priority thread according to pre-stored low-priority task computing capability quota information;
[0120] A priority marking unit 72, configured to mark the acquired tasks with priority according to pre-stored task priority configuration information;
[0121] The task queue unit 73 is used to place the tasks marked with priority in the order of priority from high to low in the pre-constructed priority blocking task queue based on heap sorting; the priority of the task at the head of the queue in the task queue Highest;
[0122] Startup unit 74, used to start high-priority thread and low-priority thread pool concurre...
Embodiment 3
[0133] Corresponding to the above embodiments, the present application also provides a computer system, including one or more processors; and
[0134] A memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, perform the following operations:
[0135] Constructing at least one high-priority thread according to pre-stored high-priority task computing capability quota information and constructing at least one low-priority thread according to pre-stored low-priority task computing capability quota information;
[0136] Prioritize the acquired tasks according to the pre-stored task priority configuration information;
[0137] Construct a priority blocking task queue based on heap sorting and place the tasks marked with priority in the task queue in order of priority from high to low; the task at the head of the task queue has the highest priority;
...
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