Method and system for automatic splitting of task and parallel execution of sub-task

A technology for executing systems and sub-tasks, applied in resource allocation, program control design, instruments, etc., can solve unpredictable problems, achieve rapid response, and speed up execution

Active Publication Date: 2016-06-22
京东益世商服科技有限公司
View PDF5 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Regardless of whether it is concurrent execution of timing calls or mutual exclusion timing calls, if the problem of slow execution cannot be dealt with in time, unpredictable risks may occur

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
  • Method and system for automatic splitting of task and parallel execution of sub-task
  • Method and system for automatic splitting of task and parallel execution of sub-task
  • Method and system for automatic splitting of task and parallel execution of sub-task

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0026] figure 1 It is an overall structural diagram showing the automatic splitting of tasks and the parallel execution of subtasks in the invention of the present application.

[0027] Such as figure 1 As shown, the system includes a main task server (for example, worker1-n shown in the figure), an intermediate server (for example, including an intermediate server client A and an intermediate server server B shown in the figure), a distributed application server (for example, Zookeeper server shown in the figure), a cache server (such as the Rdeis cache server shown in the figure), and a subtask server (such as the subtask servers 1-n shown in the figure). Here, it should be pointed out figure 1 The content illustrate...

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 present invention provides a method and system for automatic splitting of a task and parallel execution of a sub-task. The method comprises: splitting a main task that needs to be processed into a plurality of sub-tasks; acquiring a unit that can be allocated to each sub-task, checking a state of the unit that can be allocated to each task, and screening out units that do not run a corresponding sub-task; allocating an equivalent parameter to each of the units that are screened out, creating a tree node, and starting the sub-tasks in parallel; after successfully starting all the sub-tasks, locking the corresponding main task; completing parallel execution of the sub-tasks, updating a state of the tree node; determining whether execution of all the sub-tasks is completed; and when it is determined that execution of all the sub-tasks is completed, sending out a message of an execution success, and unlocking the corresponding main task.

Description

technical field [0001] The invention relates to a method and system for automatic task splitting and parallel execution of subtasks, in particular to a method and system for automatic task splitting based on distributed queues and distributed parallel execution of subtasks. Background technique [0002] Timing call (worker) in distributed programs is a common means of asynchronous processing. We tend to spread across several machines. Then let these machines run preset tasks regularly. But the production environment is changing rapidly. Perhaps due to objective reasons, the execution speed of a certain scheduled call (worker) cannot meet the requirements, but the online task is eager to complete the scheduled call task. At this time, a function is needed, which is to quickly split the content to be processed by the scheduled call horizontally, assign it to the idle machine with a preset value, and process it together to speed up, minimize risks, and flexibly control the e...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5061
Inventor 魏亚文孙政
Owner 京东益世商服科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products