Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2020-05-05
SUNING CLOUD COMPUTING CO LTD
View PDF1 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a task processing method, device and computer system to solve the problem that important tasks cannot be processed in time in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task processing method and device and computer system
  • Task processing method and device and computer system
  • Task processing method and device and computer system

Examples

Experimental program
Comparison scheme
Effect test

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;

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the invention disclose a task processing method and device and a computer system. The method comprises the steps of constructing at least one high-priority thread and at least one low-priority thread according to high-priority and low-priority task calculation capability quota information; marking priorities for the obtained tasks according to the task priority configuration information; constructing a priority blocking task queue based on heap sorting, and sequentially placing the tasks marked with the priorities in the task queue from high to low according to the priorities; concurrently starting the high-priority thread and the low-priority thread; when any high-priority thread monitors that the priority of the task at the head of the queue in the task queue is not less than a preset first threshold value, taking out the task at the head of the queue and processing the task at the high-priority thread; and when any low-priority thread monitors that the priority of thetask at the head of the queue in the task queue is not less than a second threshold, taking out the task at the head of the queue and processing the task at the low-priority thread. Timely priority processing of the high-priority tasks is ensured.

Description

technical field [0001] The present application relates to the field of task processing in distributed clusters, in particular to a task processing method, device and computer system. Background technique [0002] With the development of science and technology, big data is increasing day by day, and the calculation tasks of large data volume are increasing accordingly. At present, the multi-thread calculation method is adopted for many task computers, and multiple tasks are processed at the same time. [0003] For example, the most widely distributed processing method corresponding to big data at present is to assign tasks to distributed computing cluster machines according to unified data sharding rules. The sequence is taken away by the thread for calculation. [0004] In business scenarios, different tasks have different importance, but according to the current method, important tasks still need to be carried out in the order of arrival, which cannot guarantee the timely ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/48
CPCG06F9/4881G06F9/4806
Inventor 冯玉徐义飞金鑫司孝波叶国华
Owner SUNING CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products