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

Task assigning method and device

A task allocation and task technology, applied in the field of data processing, can solve the problem of tasks waiting for a long time to be consumed

Inactive Publication Date: 2016-12-07
INSPUR QILU SOFTWARE IND
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if there are many queued tasks in the message queue, and the newly produced task has a higher priority and needs to be consumed by the subsystem urgently, it will cause the high priority task to wait for a long time before being consumed

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 assigning method and device
  • Task assigning method and device
  • Task assigning method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0051] Such as figure 1 As shown, the embodiment of the present invention provides a task allocation method, the method may include the following steps:

[0052] Step 101: Build at least two message queues according to the number of task classifications;

[0053] Step 102: configure the corresponding relationship between task classification and messag...

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

The invention provides a task assigning method and a task assigning device. The method comprises the following steps of building at least two message queues according to a number of task classifications; configuring a corresponding relationship between the task classifications and the message queues; determining a priority for every task generated by a task producer; assigning the task to the message queue with a minimal queuing number when the condition that the priority of the task is higher than a setting level is determined; determining the classification of the task when the condition that the priority of the task is not higher than the setting level is determined; assigning the task to the corresponding message queue according to the classification of the task and the corresponding relationship; respectively scheduling a corresponding number of tasks from each of the at least two message queues, and assigning the scheduled tasks to a normal queue by a scheduling process. According to the scheme provided by the invention, the condition that the task of which the priority is higher than the setting level is preferentially consumed can be guaranteed.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a task allocation method and device. Background technique [0002] With the continuous development of enterprise business, the enterprise system is also becoming larger and larger. The scheduling system of the message queue plays a very important role in the interaction between the multiple subsystems included in the enterprise system. [0003] Currently, in the scheduling system, each time a task producer produces a task, the task is assigned to a message queue for queuing, waiting to be consumed by the subsystem. However, if there are many queued tasks in the message queue, and the newly produced tasks have a higher priority and need to be consumed by the subsystem urgently, it will cause the high priority task to wait for a long time before being consumed. Contents of the invention [0004] Embodiments of the present invention provide a task allocation method and d...

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/4881
Inventor 张裕超
Owner INSPUR QILU SOFTWARE IND
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