CN109800078A - A kind of task processing method, task distribution terminal and task execution terminal - Google Patents
A kind of task processing method, task distribution terminal and task execution terminal Download PDFInfo
- Publication number
- CN109800078A CN109800078A CN201811519989.1A CN201811519989A CN109800078A CN 109800078 A CN109800078 A CN 109800078A CN 201811519989 A CN201811519989 A CN 201811519989A CN 109800078 A CN109800078 A CN 109800078A
- Authority
- CN
- China
- Prior art keywords
- task
- subtask
- pending
- terminal
- result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The present invention provides a kind of task processing method, task distribution terminal and task execution terminals.The described method includes: selecting the first pending subtask from multiple pending subtasks, and the first pending subtask is sent to multiple tasks and executes terminal;Receive the multiple tasks processing result corresponding to the described first pending subtask returned by the multiple task execution terminal;The corresponding selection result of each task processing result is determined according to the corresponding fractional value of each task processing result;The second pending subtask is selected from the multiple pending subtask, the described second pending subtask is sent to the multiple task execution terminal, and each selection result is sent to the corresponding task execution terminal.The processing speed of task can be improved in the present invention, and improves the usage experience of user.
Description
Technical field
The present invention relates to.Technical field is held more particularly to a kind of task processing method, task distribution terminal and task
Row terminal.
Background technique
With the continuous development of big data era, large-scale data plays crucial work for scientific algorithm and scientific statistics
With.Currently, usually a certain task is divided by task dispensing machines people more to improve the accuracy of task operation result
A subtask, and each subtask is sent to multiple execution robots one by one and is handled, and receives multiple execution robots
The processing result of return therefrom selects optimal processing result.
And in above scheme, one subtask is distributed to multiple execution robots in task dispensing machines people and is handled
Later, multiple processing results for executing robots and returning are received, and after therefrom selecting optimal processing result, selection result is sent out
It gives corresponding multiple tasks and executes robot, the execution robot needs not selected, which return back to internal state, to be not carried out
Then state before the subtask issues next subtask by task dispensing machines people again.
As shown in the above, every processing for carrying out a subtask is required to task dispensing machines people and executes robot
It is interacted twice, in the case that the interaction times of task dispensing machines people and execution robot are more, reduces the place of task
Speed is managed, and further reduced the usage experience of user.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State task processing method, task distribution terminal and the task execution terminal of problem.
According to an aspect of the invention, there is provided a kind of task processing method, comprising: from multiple pending subtasks
The first pending subtask is selected, and the first pending subtask is sent to multiple tasks and executes terminal;It receives by described more
The multiple tasks processing result corresponding to the described first pending subtask that a task execution terminal returns;According to each described
The corresponding fractional value of business processing result determines the corresponding selection result of each task processing result;From the multiple wait hold
The second pending subtask is selected in row subtask, it is whole that the described second pending subtask is sent to the multiple task execution
End, and each selection result is sent to the corresponding task execution terminal.
Preferably, first pending subtask is sent to described before the step of multiple tasks execute terminal end, also
It include: that pending task is divided into multiple pending subtasks;Corresponding mark is distributed in respectively each pending subtask
Know information.
Preferably, the identification information includes first identifier information and second identifier information, described by the first pending son
Task is sent to the step of multiple tasks execute terminal, comprising: by the described first pending subtask and described first pending
The corresponding first identifier information in subtask is sent to the multiple task execution terminal;It is described by the described second pending subtask
It is sent to the multiple task execution terminal, and each selection result is sent to the step of the corresponding task execution terminal
Suddenly, comprising: the described second pending subtask, the corresponding second identifier information in the second pending subtask are sent to institute
It states multiple tasks and executes terminal, and each selection result is sent to the corresponding task execution terminal.
Preferably, described to determine each task processing result point according to the corresponding fractional value of each task processing result
Not corresponding selection result the step of, comprising: according to the size of each fractional value, by the maximum task processing result of fractional value
As being selected as a result, and using other task processing results as unselected result.
According to another aspect of the present invention, a kind of task processing method is provided, comprising: receive and process by task point
Send out the first pending subtask that terminal is sent;Task processing result is back to the task distribution terminal;It receives by described
Task distributes the second pending subtask that terminal is sent and the task processing result corresponding to the described first pending subtask
Selection result;The second pending subtask is executed according to presetting rule according to the selection result.
Preferably, described the step of receiving and processing the first pending subtask sent by task distribution terminal, comprising:
Receive the first pending subtask and the first pending subtask corresponding first sent by task distribution terminal
Identification information;Described first pending subtask is handled;Described first pending subtask is handled described
The step of after, further includes: establish and save the corresponding task processing result in the described first pending subtask and described first
Incidence relation between identification information.
Preferably, the step for executing the described second pending subtask according to presetting rule according to the selection result
Suddenly, comprising: when the selection result is by selection result, the described second pending subtask is executed under current state;Or
When the selection result is unselected result, according to the first identifier information, by the state of the task execution terminal
The state being restored to before executing the first pending subtask;Execute the described second pending subtask.
According to another aspect of the present invention, a kind of task distribution terminal is provided, comprising: the first subtask sends mould
Block for selecting the first pending subtask from multiple pending subtasks, and the first pending subtask is sent to more
A task execution terminal;Processing result receiving module corresponds to institute by what the multiple task execution terminal returned for receiving
State the multiple tasks processing result of the first pending subtask;Selection result determining module, for being handled according to each task
As a result corresponding fractional value determines the selection result of each task processing result;Second subtask sending module is used for from institute
The second pending subtask of selection in multiple pending subtasks is stated, the described second pending subtask is sent to the multiple
Task execution terminal, and each selection result is sent to the corresponding task execution terminal.
Preferably, further includes: task division module, for pending task to be divided into multiple pending subtasks;Mark
Know information assigning module, distributes corresponding identification information for respectively each pending subtask.
Preferably, the identification information includes first identifier information and second identifier information, and first subtask is sent
Module includes: the first subtask sending submodule, for appointing the described first pending subtask and the first pending son
Corresponding first identifier information of being engaged in is sent to the multiple task execution terminal;Second subtask sending module includes:
Two subtask sending submodules are used for the described second pending subtask, the second pending subtask corresponding second
Identification information is sent to the multiple task execution terminal, and each selection result is sent to the corresponding task execution
Terminal.
Preferably, the selection result determining module includes: that selection result determines submodule, for according to each score
The size of value, using the maximum task processing result of fractional value as being selected as a result, and using other task processing results as not
By selection result.
According to another aspect of the present invention, a kind of task execution terminal is provided, comprising: the first subtask reception processing
Module, for receiving and processing the first pending subtask sent by task distribution terminal;Processing result return module, is used for
Task processing result is back to the task distribution terminal;Second subtask receiving module, for receiving by the task point
Send out the second pending subtask of terminal transmission and the selection of the task processing result corresponding to the described first pending subtask
As a result;Second subtask processing module, for executing the second pending son according to presetting rule according to the selection result
Task.
Preferably, first subtask receiving processing module includes: the first subtask and mark receiving submodule, is used for
Receive the first pending subtask and the first pending subtask corresponding first sent by task distribution terminal
Identification information;First subtask handles submodule, for handling the described first pending subtask;The task execution
Terminal further include: incidence relation establishes preserving module, for establishing and saving the corresponding task in the described first pending subtask
Incidence relation between processing result and the first identifier information.
Preferably, second subtask processing module includes: current state implementation sub-module, for tying in the selection
When fruit is by selection result, the described second pending subtask is executed under current state;Or state reduction submodule, it is used for
When the selection result is unselected result, according to the first identifier information, also by the state of the task execution terminal
As far as the state before the execution first pending subtask;Second subtask implementation sub-module, for executing described second
Pending subtask.
According to the technique and scheme of the present invention, task distribution terminal selects the first pending son from multiple pending subtasks
Task, and the first pending subtask is sent to multiple tasks and executes terminal, and receives and executes terminal return by multiple tasks
The multiple tasks processing result corresponding to the first pending subtask, determined according to the corresponding fractional value of each task processing result
The corresponding selection result of each task processing result, and the second pending subtask is selected from multiple pending subtasks,
Second pending subtask is sent to multiple tasks and executes terminal, and each selection result is sent to corresponding task execution end
End.In the technical scheme, it only needs task distribution terminal and task execution terminal once to be interacted for each subtask, subtracts
Lack the interaction times between task distribution terminal and task execution terminal, improves the processing speed of task, and improve use
The usage experience at family.
Detailed description of the invention
Fig. 1 is a kind of step flow chart for task processing method that the embodiment of the present invention one provides;
Fig. 2 is a kind of step flow chart of task processing method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for task distribution terminal that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for task execution terminal that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of task processing method provided in an embodiment of the present invention is shown, at the task
Reason method can be used for task distribution terminal, can specifically include following steps:
Step 101: the first pending subtask is selected from multiple pending subtasks, and by the first pending subtask
It is sent to multiple tasks and executes terminal.
In embodiments of the present invention, task distribution terminal can be task dispensing machines people, and task dispensing machines people can be with
It is associated with multiple tasks execution robot, for task to be divided into multiple subtasks, and multiple subtasks will successively be divided
Multiple tasks execution robot is issued to be handled.
Certainly, task distribution terminal can also be other terminal devices, for example, the primary server etc. in server cluster
Deng the embodiments of the present invention are not limited thereto.
First pending subtask refers to a subtask being divided into pending task in multiple pending subtasks,
It when handling pending task, needs to divide pending subtask, specifically, be carried out with embodiments discussed below detailed
Description.
In one preferred embodiment of the invention, before above-mentioned steps 101, can also include:
Step S1: pending task is divided into multiple pending subtasks.
In embodiments of the present invention, it before handling pending task, needs to divide pending task,
To obtain multiple pending subtasks, for example, before handling pending task A, by pending task A be divided into subtask 1,
Subtask 2, subtask 3, or pending task A is divided into subtask a, subtask b etc..
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating
Example, not as to sole limitation of the invention.
And can be 2,4,8 etc. for the quantity of the subtask of division, the present invention is without restriction to this.
It certainly, has been the more mature skill in this field by the technology that pending task is divided into multiple pending subtasks
Art, any scheme that pending task can be divided into multiple pending subtasks may be incorporated for this in the prior art
Invention, the embodiment of the present invention are not repeated here herein.
After pending task is divided into multiple pending subtasks, step S2 is executed.
Step S2: being respectively that corresponding identification information is distributed in each pending subtask.
After the multiple pending subtasks divided, corresponding mark can also be distributed for each pending subtask
Know information, the identification information of each pending subtask is unique, has son to appoint for example, dividing obtained pending subtask
Be engaged in A, subtask B, subtask C, can be subtask A allocation identification information 1, be subtask B allocation identification information 2, appoint for son
C allocation identification information 3 of being engaged in etc..
By distributing different identification informations respectively for multiple subtasks, and then it can directly pass through determining pair of identification information
Task processing result can be directly associated with identification information by the subtask answered in subsequent processes, so as to
Determine corresponding subtask of processing result etc. of going out on missions.
After for each subtask allocation identification information, then above-mentioned steps 101 may include:
Sub-step S1: the corresponding first identifier in the described first pending subtask and the first pending subtask is believed
Breath is sent to the multiple task execution terminal.
In embodiments of the present invention, first identifier information refers to that task distribution terminal is the first pending subtask distribution
Identification information, first identifier information can be a numeric identifier number, such as 1,3,4, or other identifiers, such as greatly
Write female, lowercase etc., and the embodiments of the present invention are not limited thereto.
Task distribution terminal by the first pending subtask be sent to multiple tasks execute terminal when, can by first to
The corresponding first identifier information of subtasking is also sent to multiple tasks and executes terminal, and then can be by each task execution terminal
The task processing result of first pending subtask is associated with first identifier information.
Certainly, after pending subtask is divided into multiple pending subtasks, each pending subtask is carried out
In treatment process, it can will divide obtained multiple pending subtasks in advance and be ranked up, i.e., sequence successive according to execution
It is arranged in and executes in queue, then the first pending subtask can its in addition to the last one pending subtask that puts in order
Its any one pending subtask, the embodiments of the present invention are not limited thereto.
The quantity of task execution terminal can be 2,5,10 etc., and the embodiments of the present invention are not limited thereto.
After selecting the first pending subtask in multiple pending subtasks, task distributes terminal can be by first
Pending subtask is sent to multiple tasks and executes terminal, and executes step 102.
Step 102: receive by the multiple task execution terminal returns corresponding to the described first pending subtask
Multiple tasks processing result.
After the first pending subtask to be distributed to multiple tasks and executes terminal, each task execution terminal can be distinguished
First pending subtask is handled, it, specifically, will be in following embodiments two to obtain corresponding task processing result
It is described in detail, is not repeated here herein.
Task distribution terminal can receive the task processing result that each task execution terminal returns.Certainly, the task of return
Processing result can determine each task processing knot according to each terminal iidentification added with a terminal iidentification for task execution terminal
Task execution terminal corresponding to fruit.
The multiple tasks processing knot corresponding to the first pending subtask that terminal returns is executed by multiple tasks receiving
After fruit, step 103 is executed.
Step 103: the choosing of each task processing result is determined according to the corresponding fractional value of each task processing result
Select result.
In embodiments of the present invention, the corresponding fractional value of each task processing result, can be by task distribution terminal according to
According to preset algorithm
Also, task distributes terminal after receiving the task processing result that each task execution terminal returns, can be by
Determine that the corresponding fractional value of each task processing result calculates the correlation of each processing result according to preset algorithm, and foundation is preset
Correlation and fractional value corresponding relationship, determine the task processing for the first pending subtask that each task execution terminal returns
As a result corresponding fractional value.
Preset task processing result can also be preset, the first pending son of each task execution terminal return is being obtained
After the task processing result of task, task processing result can be compared with preset processing result, so that it is determined that task
The similarity of processing result and preset task processing result, and the corresponding relationship according to similarity and fractional value, determination correspond to
The corresponding fractional value of task processing result of the first pending subtask etc. that each task execution terminal returns.
Certainly, each task execution terminal, can be to task after handling the received first pending subtask
Processing result determines the correlation of the corresponding fractional value calculating task processing result of task processing result according to preset algorithm, and according to
According to the corresponding relationship of preset correlation and fractional value, corresponding fractional value of task reason result is determined at this, and by score
Value returns to task distribution terminal.
In the concrete realization, those skilled in the art can execute the acquisition of the corresponding fractional value of selection task processing result
Mode can distribute terminal by task and obtain, can also be obtained by task execution terminal, the embodiment of the present invention does not limit this
System.
Task distributes terminal in each corresponding to the first pending subtask for receiving each task execution terminal return
Business processing result can select one to appoint according to the corresponding fractional value of each task processing result from multiple tasks processing result
OPTIMAL TASK processing result of the processing result of being engaged in as the first pending subtask.
In one preferred embodiment of the invention, above-mentioned steps 103 may include:
Sub-step M1: according to the size of each fractional value, using the maximum task processing result of fractional value as being selected
As a result, and using other task processing results as unselected result.
It in embodiments of the present invention, can be using the maximum task processing result of fractional value as task distribution terminal selection
Optimal processing is as a result, and other task processing results are unselected result.For example, what task execution terminal 1,2,3 returned
Task processing result corresponding to the first pending subtask is task processing result A, B, C, the fractional value of task processing result A
It is 35, the fractional value of task processing result B is 20, and the fractional value of task processing result C is 60, then makees task processing result C
To be selected as a result, task processing result C is the optimal processing result of the first pending subtask.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating
Example, not as to sole limitation of the invention.
After determining selection result in each task processing result, step 104 is executed.
Step 104: the second pending subtask is selected from the multiple pending subtask, it is pending by described second
Subtask is sent to the multiple task execution terminal, and each selection result is sent to the corresponding task execution end
End.
Second pending subtask refers to any subtask for not carrying out processing in pending subtask.
From in each task processing result determine correspond to the first pending subtask selection result after, then from multiple
The second pending subtask is selected in pending subtask, and the second pending subtask is sent to multiple tasks and executes terminal,
And each selection result is sent to corresponding task execution terminal.For example, the second pending son of task distribution terminal selection is appointed
Business is subtask 1, needs for be sent to subtask 1 task execution terminal A, B, C, and the processing of subtask pending for first
As a result in, the processing result of task execution terminal A be selected as a result, then the processing result of task execution terminal B and C for not by
Selection result, task distribution terminal need for subtask 1 to be respectively sent to task execution terminal A, B and C, and will be by selection result
It is sent to task execution terminal A, unselected result is sent to task execution terminal B and C.
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating
Example, not as the sole limitation to the embodiment of the present invention.
Certainly, in the present invention, it also is assigned second identifier information for the second pending subtask in advance, then above-mentioned steps
104 may include:
Sub-step N1: the described second pending subtask, the second pending subtask are sent to the multiple
Business executes terminal, and each selection result is sent to the corresponding task execution terminal.
In embodiments of the present invention, second identifier information refers to that task distribution terminal is the second pending subtask distribution
Identification information, second identifier information can be a numeric identifier number, such as 1,3,4, or other identifiers, such as greatly
Write female, lowercase etc., and the embodiments of the present invention are not limited thereto.
The second pending subtask is sent to multiple tasks in task distribution terminal and executes terminal, and corresponds to each task
It, can be by the second pending subtask corresponding second when the selection result of execution terminal is sent to corresponding task execution terminal
Identification information is also sent to multiple tasks and executes terminal, and then can be by each task execution terminal by the second pending subtask
Processing result is associated with second identifier information.
In above process, without task distribution terminal in the choosing for determining the corresponding processing result in the first pending subtask
After selecting result, selection result is individually sent to multiple tasks and executes terminal, but selection result is pending together with second
Subtask is sent to multiple tasks together and executes terminal, executes terminal so as to reduce task distribution terminal and multiple tasks
Interaction times.
Task processing method provided in an embodiment of the present invention, task distribution terminal select the from multiple pending subtasks
One pending subtask, and the first pending subtask is sent to multiple tasks and executes terminal, and receives and is held by multiple tasks
The multiple tasks processing result corresponding to the first pending subtask that row terminal returns, it is corresponding according to each task processing result
Fractional value determines the selection result of each task processing result, and the second pending subtask is selected from pending subtask, will
Second pending subtask is sent to multiple tasks and executes terminal, and each selection result is sent to corresponding task execution end
End.In the technical scheme, it only needs task distribution terminal and task execution terminal once to be interacted for each subtask, subtracts
Lack the interaction times between task distribution terminal and task execution terminal, improves the processing speed of task, and improve use
The usage experience at family.
Embodiment two
Referring to Fig. 2, a kind of step flow chart of task processing method provided in an embodiment of the present invention is shown, at the task
Reason method can be used for task execution terminal, can specifically include following steps:
Step 201: receiving and processing the first pending subtask sent by task distribution terminal.
In embodiments of the present invention, task execution terminal can be task execution robot, and task distributes terminal then can be with
For task dispensing machines people, task execution robot can receive the multiple pending subtasks distributed by task dispensing machines people
And handled, to return to processing result to task dispensing machines people.
Certainly, task execution terminal can also be other terminal devices, for example, the slave server etc. in server cluster
Deng the embodiments of the present invention are not limited thereto.
Task execution terminal can receive the first pending subtask of task distribution terminal distribution, and pending to first
Subtask is handled, and then can be processed the processing result of the first pending subtask.
Certainly, task distribution terminal is also assigned first identifier information in advance for the first pending subtask, and by first
Identification information is sent to task execution terminal together with the first pending subtask together, and in turn, above-mentioned steps 101 may include:
Sub-step P1: the first pending subtask sent by task distribution terminal and described first pending is received
The corresponding first identifier information in subtask;
Sub-step P2: the described first pending subtask is handled.
In embodiments of the present invention, task execution terminal is appointed in the first pending son for receiving task distribution terminal transmission
While business, the first identifier information of the first pending subtask by task distribution terminal distribution can also be received, in turn, by
The first pending subtask that task execution end-on is received is handled, and after obtaining processing result, can establish first
The incidence relation of pending subtask and first identifier information, and then can be determined according to the identification information associated by processing result
Pending subtask corresponding to processing result out.
After the incidence relation for establishing the first pending subtask and first identifier information, task execution terminal can be with
The incidence relation is saved, specifically, can be saved by establishing corresponding database, it can also be in task execution
Terminal side is established incidence relation list and is saved, and the embodiments of the present invention are not limited thereto.
After receiving and processing the first pending subtask that task distribution terminal is sent, step 202 is executed.
Step 202: task processing result being back to the task and distributes terminal.
After the task processing result for determining the first pending subtask, task processing result can be back to task
Distribute terminal.
While returning to task processing result, the terminal iidentification of task execution terminal can also be added, so that task
Distribution terminal can determine the end of task execution corresponding to the task processing result of the first pending subtask according to terminal iidentification
End.
After task processing result to be back to task distribution terminal, 203 are thened follow the steps.
Step 203: receiving the second pending subtask sent by task distribution terminal and corresponding to described first
The selection result of the task processing result of pending subtask.
It, can be according to task after task distribution terminal receives the corresponding task processing result in the first pending subtask
Processing result obtains corresponding fractional value, and then determines that the selection result of task processing result (is not chosen by selection result and
Select result), and then select the second pending subtask from multiple pending subtasks by task distribution terminal, and by second to
The corresponding selection result of subtasking and the first pending subtask is sent to task execution terminal.
Certainly, in the concrete realization, the corresponding fractional value of task processing result is also possible to be obtained by task execution terminal
It takes, also includes the corresponding fractional value of task processing result while returning to task processing result to task distribution terminal,
And for the acquisition modes of fractional value, the describing mode being referred in above-described embodiment one, the embodiment of the present invention is herein no longer
It is repeated here.
Task execution terminal is in the second pending subtask of reception and corresponding to the selection result of the first pending subtask
Later, step 204 is executed.
Step 204: executing the second pending subtask according to presetting rule according to the selection result.
In embodiments of the present invention, selection result may include by selection result and unselected as a result, by selection result
Refer to that the task processing result of a certain pending subtask of task execution terminal processes is selected as optimal place by task distribution terminal
Reason is as a result, to carry out subsequent treatment process.
Unselected result refers to that the task processing result of a certain pending subtask of task execution terminal processes is not appointed
Business distribution terminal is selected as optimal processing as a result, i.e. the task processing result is considered as invalid task processing by task distribution terminal
As a result.
It is selected that the corresponding selection result of task processing result of the first pending subtask is executed in task execution terminal
When selecting result, then after task execution terminal receives the second pending subtask, directly in the current of task execution terminal
The second pending subtask is executed under state.
It and is not in the corresponding selection result of task processing result that task execution terminal executes the first pending subtask
When by selection result, then after task execution terminal receives the second pending subtask, according to first identifier information, it will appoint
Business executes the state before the state reduction to the first pending subtask of execution of terminal, and then executes the second pending son and appoint
Business.
In the embodiment of the present invention, task execution terminal can be after having handled the first pending subtask, not directly
The selection result of the task processing result corresponding to the first pending subtask sent by task distribution terminal is received, but is connect
Receipts task distributes the selection knot of the task processing result of the second pending subtask that terminal is sent and the first pending subtask
Fruit, and then task execution terminal can execute the second pending subtask according to presetting rule, to reduce according to selection result
The step of independent reception task processing result corresponding selection result, reduces task execution terminal and task distribution terminal
Interaction times.
Task processing method provided in an embodiment of the present invention distributes the first of terminal transmission by task by receiving and processing
Pending subtask, by task processing result be back to task distribution terminal, receive by task distribution terminal send second to
The selection result of subtasking and the task processing result corresponding to the first pending subtask, in turn, according to selection result
The second pending subtask is executed according to presetting rule.Through the embodiment of the present invention, it is possible to reduce task execution terminal individually connects
The process for receiving the selection result sent by task distribution terminal reduces the friendship between task execution terminal and task distribution terminal
Mutual number, improves the processing speed of task, and improves the usage experience of user.
Embodiment three
Referring to Fig. 3, a kind of structural schematic diagram of task distribution terminal provided in an embodiment of the present invention is shown, it specifically can be with
Include:
First subtask sending module 310, for selecting the first pending subtask from multiple pending subtasks, and
First pending subtask is sent to multiple tasks and executes terminal;Processing result receiving module 320, for receiving by described more
The multiple tasks processing result corresponding to the described first pending subtask that a task execution terminal returns;Selection result determines
Module 330, for determining the selection knot of each task processing result according to the corresponding fractional value of each task processing result
Fruit;Second subtask sending module 340 will for selecting the second pending subtask from the multiple pending subtask
The second pending subtask is sent to the multiple task execution terminal, and each selection result is sent to corresponding
The task execution terminal.
Preferably, further includes: task division module, for pending task to be divided into multiple pending subtasks;Mark
Know information assigning module, distributes corresponding identification information for respectively each pending subtask.
Preferably, the identification information includes first identifier information and second identifier information, and first subtask is sent
Module 310 includes: the first subtask sending submodule, is used for the described first pending subtask and the first pending son
The corresponding first identifier information of task is sent to the multiple task execution terminal;Second subtask sending module 340 wraps
It includes: the second subtask sending submodule, for the described second pending subtask, the second pending subtask is corresponding
Second identifier information is sent to the multiple task execution terminal, and each selection result is sent to the corresponding task
Execute terminal.
Preferably, the selection result determining module 330 includes: that selection result determines submodule, for according to each described
The size of fractional value, using the maximum task processing result of fractional value as selected as a result, and by other task processing results make
For unselected result.
Task provided in an embodiment of the present invention distributes terminal, and task distribution terminal selects the from multiple pending subtasks
One pending subtask, and the first pending subtask is sent to multiple tasks and executes terminal, and receives and is held by multiple tasks
The multiple tasks processing result corresponding to the first pending subtask that row terminal returns, it is corresponding according to each task processing result
Fractional value determines the selection result of each task processing result, and the second pending subtask is selected from pending subtask, will
Second pending subtask is sent to multiple tasks and executes terminal, and each selection result is sent to corresponding task execution end
End.In the technical scheme, it only needs task distribution terminal and task execution terminal once to be interacted for each subtask, subtracts
Lack the interaction times between task distribution terminal and task execution terminal, improves the processing speed of task, and improve use
The usage experience at family.
Example IV
Referring to Fig. 4, a kind of structural schematic diagram of task execution terminal provided in an embodiment of the present invention is shown, it specifically can be with
Include:
First subtask receiving processing module 410, for receive and process by task distribution terminal send first wait hold
Row subtask;Processing result return module 420 distributes terminal for task processing result to be back to the task;Second son
Task receiving module 430, for receiving the second pending subtask sent by task distribution terminal and corresponding to described
The selection result of the task processing result of first pending subtask;Second subtask processing module 440, for according to the choosing
It selects result and executes the second pending subtask according to presetting rule.
Preferably, first subtask receiving processing module 410 include: the first subtask and mark receiving submodule,
It is corresponding by the first pending subtask of task distribution terminal transmission and the first pending subtask for receiving
First identifier information;First subtask handles submodule, for handling the described first pending subtask;The task
Execute terminal further include: incidence relation establishes preserving module, corresponding for establishing and saving the described first pending subtask
Incidence relation between task processing result and the first identifier information.
Preferably, second subtask processing module 440 includes: current state implementation sub-module, in the choosing
When selecting result as by selection result, the described second pending subtask is executed under current state;Or state reduction submodule, it uses
In the selection result be unselected result when, according to the first identifier information, by the shape of the task execution terminal
State is restored to the state before executing the first pending subtask;Second subtask implementation sub-module, it is described for executing
Second pending subtask.
Task execution terminal provided in an embodiment of the present invention distributes the first of terminal transmission by task by receiving and processing
Pending subtask, by task processing result be back to task distribution terminal, receive by task distribution terminal send second to
The selection result of subtasking and the task processing result corresponding to the first pending subtask, in turn, according to selection result
The second pending subtask is executed according to presetting rule.Through the embodiment of the present invention, it is possible to reduce task execution terminal individually connects
The process for receiving the selection result sent by task distribution terminal reduces the friendship between task execution terminal and task distribution terminal
Mutual number, improves the processing speed of task, and improves the usage experience of user.
It should be understood that
Algorithm and display be not inherently related to any certain computer, virtual bench or other equipment provided herein.
Various fexible units can also be used together with teachings based herein.As described above, it constructs required by this kind of device
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit requires, abstract and attached drawing) disclosed in each feature can be by providing identical, equivalent, or similar purpose alternative features come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize character recognition device according to an embodiment of the present invention, electronic equipment
With some or all functions of some or all components in computer readable storage medium.The present invention is also implemented as
For execute method as described herein some or all device or device program (for example, computer program and
Computer program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have
The form of one or more signal.Such signal can be downloaded from an internet website to obtain, or on the carrier signal
It provides, or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (14)
1. a kind of task processing method is applied to task and distributes terminal characterized by comprising
The first pending subtask is selected from multiple pending subtasks, and the first pending subtask is sent to multiple
Business executes terminal;
It receives and is handled by the multiple tasks corresponding to the described first pending subtask that the multiple task execution terminal returns
As a result;
The corresponding selection knot of each task processing result is determined according to the corresponding fractional value of each task processing result
Fruit;
The second pending subtask is selected from the multiple pending subtask, and the described second pending subtask is sent to
The multiple task execution terminal, and each selection result is sent to the corresponding task execution terminal.
2. the method according to claim 1, wherein first pending subtask is sent to multiple described
Business executed before the step of terminal end, further includes:
Pending task is divided into multiple pending subtasks;
Corresponding identification information is distributed in respectively each pending subtask.
3. according to the method described in claim 2, it is characterized in that, the identification information includes first identifier information and the second mark
Know information, it is described that first pending subtask is sent to the step of multiple tasks execute terminal, comprising:
The corresponding first identifier information in described first pending subtask and the first pending subtask is sent to described
Multiple tasks execute terminal;
It is described that described second pending subtask is sent to the multiple task execution terminal, and each selection result is sent out
The step of sending to the corresponding task execution terminal, comprising:
Described second pending subtask, the corresponding second identifier information in the second pending subtask are sent to described more
A task execution terminal, and each selection result is sent to the corresponding task execution terminal.
4. the method according to claim 1, wherein described according to the corresponding score of each task processing result
Value determines the step of each task processing result corresponding selection result, comprising:
According to the size of each fractional value, using the maximum task processing result of fractional value as being selected as a result, and will be other
Task processing result is as unselected result.
5. a kind of task processing method is applied to task execution terminal characterized by comprising
Receive and process the first pending subtask sent by task distribution terminal;
Task processing result is back to the task distribution terminal;
It receives the second pending subtask sent by task distribution terminal and corresponds to the described first pending subtask
Task processing result selection result;
The second pending subtask is executed according to presetting rule according to the selection result.
6. according to the method described in claim 5, it is characterized in that, described receive and process the sent by task distribution terminal
The step of one pending subtask, comprising:
It receives corresponding by the first pending subtask of task distribution terminal transmission and the first pending subtask
First identifier information;
Described first pending subtask is handled;
After described the step of handling the described first pending subtask, further includes:
It establishes and saves between the described first pending corresponding task processing result in subtask and the first identifier information
Incidence relation.
7. according to the method described in claim 6, it is characterized in that, described execute according to the selection result according to presetting rule
The step of second pending subtask, comprising:
When the selection result is by selection result, the described second pending subtask is executed under current state;Or
When the selection result is unselected result, according to the first identifier information, by the task execution terminal
State reduction is to the state executed before the described first pending subtask;
Execute the described second pending subtask.
8. a kind of task distributes terminal characterized by comprising
First subtask sending module, for selecting the first pending subtask from multiple pending subtasks, and by first
Pending subtask is sent to multiple tasks and executes terminal;
Processing result receiving module, for receiving by the pending corresponding to described first of the multiple task execution terminal return
The multiple tasks processing result of subtask;
Selection result determining module, for determining each task processing according to the corresponding fractional value of each task processing result
As a result selection result;
Second subtask sending module, for selecting the second pending subtask from the multiple pending subtask, by institute
It states the second pending subtask and is sent to the multiple task execution terminal, and each selection result is sent to corresponding institute
State task execution terminal.
9. task according to claim 8 distributes terminal, which is characterized in that further include:
Task division module, for pending task to be divided into multiple pending subtasks;
Identification information distribution module distributes corresponding identification information for respectively each pending subtask.
10. task according to claim 9 distributes terminal, which is characterized in that the identification information includes first identifier letter
Breath and second identifier information, first subtask sending module include:
First subtask sending submodule, for the described first pending subtask and the first pending subtask is corresponding
First identifier information be sent to the multiple task execution terminal;
Second subtask sending module includes:
Second subtask sending submodule, for the described second pending subtask, the second pending subtask is corresponding
Second identifier information be sent to the multiple task execution terminal, and each selection result is sent to corresponding described appoint
Business executes terminal.
11. task according to claim 8 distributes terminal, which is characterized in that the selection result determining module includes:
Selection result determines submodule, for the size according to each fractional value, by the maximum task processing result of fractional value
As being selected as a result, and using other task processing results as unselected result.
12. a kind of task execution terminal characterized by comprising
First subtask receiving processing module is appointed for receiving and processing by the first pending son that task distribution terminal is sent
Business;
Processing result return module distributes terminal for task processing result to be back to the task;
Second subtask receiving module, for receiving the second pending subtask and correspondence by task distribution terminal transmission
In the selection result of the task processing result of the described first pending subtask;
Second subtask processing module is appointed for executing the described second pending son according to presetting rule according to the selection result
Business.
13. task execution terminal according to claim 12, which is characterized in that first subtask receiving processing module
Include:
First subtask and mark receiving submodule are appointed for receiving by the first pending son that task distribution terminal is sent
The corresponding first identifier information of business and the first pending subtask;
First subtask handles submodule, for handling the described first pending subtask;
The task execution terminal further include:
Incidence relation establishes preserving module, for establishing and saving the corresponding task processing result in the described first pending subtask
With the incidence relation between the first identifier information.
14. task execution terminal according to claim 13, which is characterized in that the second subtask processing module packet
It includes:
Current state implementation sub-module, described in being executed under current state when the selection result is by selection result
Second pending subtask;Or
State reduction submodule is used for when the selection result is unselected result, will according to the first identifier information
The state reduction of the task execution terminal is to the state executed before the described first pending subtask;
Second subtask implementation sub-module, for executing the described second pending subtask.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811519989.1A CN109800078B (en) | 2018-12-12 | 2018-12-12 | Task processing method, task distribution terminal and task execution terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811519989.1A CN109800078B (en) | 2018-12-12 | 2018-12-12 | Task processing method, task distribution terminal and task execution terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109800078A true CN109800078A (en) | 2019-05-24 |
CN109800078B CN109800078B (en) | 2020-04-28 |
Family
ID=66556596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811519989.1A Active CN109800078B (en) | 2018-12-12 | 2018-12-12 | Task processing method, task distribution terminal and task execution terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109800078B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110933132A (en) * | 2019-10-25 | 2020-03-27 | 中国环境监测总站 | Data processing server and data processing system |
CN111429088A (en) * | 2020-03-10 | 2020-07-17 | 岭东核电有限公司 | Process test result sending method and device, computer equipment and storage medium |
CN112862451A (en) * | 2021-03-02 | 2021-05-28 | 岭东核电有限公司 | Work order processing method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070124363A1 (en) * | 2004-07-21 | 2007-05-31 | The Mathworks, Inc. | Instrument-based distributed computing systems |
CN102999385A (en) * | 2012-11-06 | 2013-03-27 | 苏州懿源宏达知识产权代理有限公司 | Multiprocessor co-processing method in computation equipment |
CN105511956A (en) * | 2014-09-24 | 2016-04-20 | 中国电信股份有限公司 | Method and system for task scheduling based on share scheduling information |
CN105729491A (en) * | 2016-04-01 | 2016-07-06 | 纳恩博(北京)科技有限公司 | Executing method, device and system for robot task |
CN106940662A (en) * | 2017-03-17 | 2017-07-11 | 上海传英信息技术有限公司 | A kind of multi-task planning method of mobile terminal |
CN107451266A (en) * | 2017-07-31 | 2017-12-08 | 北京京东尚科信息技术有限公司 | For processing data method and its equipment |
-
2018
- 2018-12-12 CN CN201811519989.1A patent/CN109800078B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070124363A1 (en) * | 2004-07-21 | 2007-05-31 | The Mathworks, Inc. | Instrument-based distributed computing systems |
CN102999385A (en) * | 2012-11-06 | 2013-03-27 | 苏州懿源宏达知识产权代理有限公司 | Multiprocessor co-processing method in computation equipment |
CN105511956A (en) * | 2014-09-24 | 2016-04-20 | 中国电信股份有限公司 | Method and system for task scheduling based on share scheduling information |
CN105729491A (en) * | 2016-04-01 | 2016-07-06 | 纳恩博(北京)科技有限公司 | Executing method, device and system for robot task |
CN106940662A (en) * | 2017-03-17 | 2017-07-11 | 上海传英信息技术有限公司 | A kind of multi-task planning method of mobile terminal |
CN107451266A (en) * | 2017-07-31 | 2017-12-08 | 北京京东尚科信息技术有限公司 | For processing data method and its equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110933132A (en) * | 2019-10-25 | 2020-03-27 | 中国环境监测总站 | Data processing server and data processing system |
CN111429088A (en) * | 2020-03-10 | 2020-07-17 | 岭东核电有限公司 | Process test result sending method and device, computer equipment and storage medium |
CN111429088B (en) * | 2020-03-10 | 2023-09-19 | 岭东核电有限公司 | Method, device, computer equipment and storage medium for transmitting process test results |
CN112862451A (en) * | 2021-03-02 | 2021-05-28 | 岭东核电有限公司 | Work order processing method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109800078B (en) | 2020-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10496375B2 (en) | Random number generator in a parallel processing database | |
US20200065067A1 (en) | Random number generator in a parallel processing database | |
CN109800078A (en) | A kind of task processing method, task distribution terminal and task execution terminal | |
CN104572974B (en) | service request processing method and device | |
CN110162388A (en) | A kind of method for scheduling task, system and terminal device | |
CN110908788A (en) | Spark Streaming based data processing method and device, computer equipment and storage medium | |
CN109582452A (en) | A kind of container dispatching method, dispatching device and electronic equipment | |
CN108829868A (en) | data display method and device, storage medium and electronic device | |
CN112506581B (en) | Method, apparatus, electronic device and readable storage medium for rendering applet | |
CN106940662A (en) | A kind of multi-task planning method of mobile terminal | |
CN109840262A (en) | Data statistical approach and relevant apparatus | |
CN105488134A (en) | Big data processing method and big data processing device | |
CN106874109A (en) | A kind of distributed job distribution processing method and system | |
CN110532559B (en) | Rule processing method and device | |
CN110413419A (en) | A kind of method and apparatus that rule executes | |
CN103701587B (en) | Multi-interface cryptographic module parallel scheduling method | |
CN107766137A (en) | A kind of task processing method and device | |
CN115344370A (en) | Task scheduling method, device, equipment and storage medium | |
KR20050057834A (en) | Method for mass data processing through scheduler in multi processor system | |
CN115033374A (en) | Task-to-thread matching method of multi-core programmable controller | |
CN114911589A (en) | Cross-data-platform fusion computing method, system, terminal and storage medium | |
CN106846149A (en) | A kind for the treatment of method and apparatus of business object | |
CN103856531A (en) | Local area network downloading device and method based on multiple collaborators | |
CN111339422A (en) | Recommendation system task management platform, recommendation method and system | |
CN109725994A (en) | Data pick-up task executing method, device, terminal and readable storage medium storing program for executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |