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

Task distribution system and method

A task distribution and task technology, applied in the field of data processing, can solve the problems of slow locking, reducing the real-time performance of task distribution, and high overhead, and achieve the effect of reducing deadlocks

Inactive Publication Date: 2018-11-02
SHENZHEN UWAY TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, the processing method based on multi-threaded concurrent tasks is mainly used for parallel task processing, that is, different tasks are assigned to multiple threads of a certain process of the operating system for processing. The problem of contention between tasks is usually implemented through database row-level locks, but row-level locks also have certain disadvantages, such as high overhead and slow locking, especially deadlocks when the degree of concurrency is high. Reduced real-time performance of task distribution

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 distribution system and method
  • Task distribution system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] see figure 1 A task distribution system provided in Embodiment 1 of the present invention, the system includes a setting module 1, a task distributor 2 and a task executor 3, wherein,

[0039] The setting module 1 is used to perform preload processing on tasks to be executed, and select a processed task to be executed to perform optimistic locking processing, and send the locked task to be executed to the task distribution device;

[0040] The task distributor 2 is configured to select the task executor through a preset rule, and send the task to be executed to the task executor, wherein the preset rule is to select the task with the lightest load Actuator;

[0041] The task executor 3 is configured to perform task distribution processing on the tasks to be executed.

[0042] Specifically, the setting module 1 includes a preloading unit 11 and a locking unit 12, wherein,

[0043] The preloading unit 11 is configured to load the tasks to be executed from the database...

Embodiment 2

[0058] Corresponding to the task distribution system disclosed in Embodiment 1 of the present invention, Embodiment 2 of the present invention also provides a task distribution method, see figure 2 It is a schematic flowchart of a task distribution method provided in Embodiment 2 of the present invention, the method is applicable to any task distribution system described in Embodiment 1 of the present invention, and the task distribution system includes a setting module, a task distribution device and task executor, the method includes the following steps:

[0059] S11. The setting module preloads the tasks to be executed, selects a processed task to be executed, performs optimistic locking processing, and sends the locked task to be executed to the task distributor;

[0060] S12. The task distributor selects the task executor according to a preset rule, and sends the task to be executed to the task executor, wherein the preset rule is to select the task executor with the lig...

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 discloses a task distribution system and method. The system comprises a setting module, a task distributor and a task executor, wherein the setting module is used for performing pre-loading processing on the to-be-executed task, and performing the optimistic lock adding processing by selecting one processed to-be-executed task, and sending the locked to-be-executed task to the task distributor; the task distributor is used for selecting the task executor through a preset rule, and sending the to-be-executed task to the task executor; and the task executor is used for performing task distribution processing on the to-be-executed task. Through the system and method disclosed by the invention, the aims of improving the real time of the task distribution and reducing the dead lock are realized.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a task distribution system and method based on a queue-based task parallel distribution mechanism. Background technique [0002] With the rapid development of mobile Internet technology and the continuous upgrading of the network, when faced with the task processing of large amounts of data, if the serial task processing method is used, the processing time of the task will be lengthened, so operators generally use the Parallel processing, in order to improve the effect of task distribution and processing, also puts forward higher requirements for parallel processing capabilities. [0003] In the prior art, the processing method based on multi-threaded concurrent tasks is mainly used for parallel task processing, that is, different tasks are assigned to multiple threads of a certain process of the operating system for processing. The problem of task contention between tas...

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/48G06F17/30
CPCG06F9/4881
Inventor 周莅涛谢绍光秦伟陈天立陈立志
Owner SHENZHEN UWAY TECH 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