CN106970834A - The method and device of task processing - Google Patents
The method and device of task processing Download PDFInfo
- Publication number
- CN106970834A CN106970834A CN201710042524.0A CN201710042524A CN106970834A CN 106970834 A CN106970834 A CN 106970834A CN 201710042524 A CN201710042524 A CN 201710042524A CN 106970834 A CN106970834 A CN 106970834A
- Authority
- CN
- China
- Prior art keywords
- task
- dependence
- waiting
- readjustment
- processing
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention discloses a kind of method and device of task processing, is related to technical field of data processing, can solve the problem that in the prior art when task dependence is more complicated, the problem of task treatment effeciency is low.The method of the present invention mainly includes:Judge whether waiting task contains dependence task, the task that the dependence task is relied on by the waiting task;If the waiting task contains dependence task, the waiting task is caused to subscribe to the readjustment service of the dependence task;After the readjustment for listening to the dependence task is notified, the waiting task is handled.The present invention is mainly suitable in the scene handled the task with dependence.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of method and device of task processing.
Background technology
In the epoch popularized in internet, generally require to realize the renewal of data by way of handling task, for example, realize
The synchronization of two tables of data, the renewal for realizing system etc..In actual applications, there is the originals such as external key dependence between factor data table
Cause so that may have the implementing result of dependence, such as dependence task 2 of task 1 between different task.However, in reality
In the application of border, task processing system received task is probably unordered, i.e., be sequentially received pair not in accordance with dependence order
Answering for task, so that it is difficult to cause task processing to produce.For example, the implementing result of the dependence task 2 of task 1, but task is handled
System but first receives task 1, so as to cause task 1 not handle.
In order to solve the above problems, a kind of scheme is proposed in the prior art:After all tasks are all received,
These tasks are stored in an interim table, and based on the dependence between each task, arrange the processing of all tasks
Sequentially, each task is finally handled successively according to the order after arrangement.But, more than the task and when dependence is complicated, arrange
The efficiency of processing sequence can be substantially reduced, and due to being after receiving all tasks and task is ranked up, just to start
Processing task, so the efficiency for causing whole system to handle task is reduced.
The content of the invention
In view of this, the present invention provides a kind of method and device of task processing, can solve the problem that and works as task in the prior art
When dependence is more complicated, the problem of task treatment effeciency is low.
On the one hand, the invention provides a kind of method of task processing, methods described includes:
Judge whether waiting task contains dependence task, the dependence task is by appointing that the waiting task is relied on
Business;
If the waiting task contains dependence task, the waiting task is caused to subscribe to returning for the dependence task
It is taken after mixing with liquid business;
After the readjustment for listening to the dependence task is notified, the waiting task is handled.
Optionally, methods described also includes:
After the completion of by waiting task processing, the readjustment notice for indicating task processing completion is broadcasted, or
When it is determined that the waiting task is subscribed to by other tasks, readjustment notice is sent to other of the subscription waiting task
Task, receives after the readjustment notice to subscribe to other tasks of the waiting task, carries out task processing operation.
Optionally, before causing the waiting task to subscribe to the readjustment service of the dependence task, methods described is also
Including:
Judge whether the dependence task handles completion;
The readjustment service for make it that the waiting task subscribes to the dependence task includes:
Completed if the dependence task is untreated, cause the waiting task to subscribe to the readjustment clothes of the dependence task
Business.
Optionally, it is described to judge whether the dependence task handles completion and include:
Judge whether the waiting task being capable of normal process;
If the waiting task is unable to normal process, it is determined that the dependence task is untreated to be completed.
Optionally, it is described to judge whether waiting task includes containing dependence task:
Judge processing basis whether is recorded in the waiting task;
If having recorded processing basis in the waiting task, it is determined that the waiting task contains dependence task.
On the other hand, the invention provides a kind of device of task processing, described device includes:
Judging unit, for judging whether waiting task contains dependence task, the dependence task is described pending
The task that task is relied on;
Subscriber units, for when the judging unit judged result for the waiting task contain dependence task when,
So that the waiting task subscribes to the readjustment service of the dependence task;
Processing unit, for after the readjustment for listening to the dependence task is notified, handling the waiting task.
Optionally, described device also includes:
Radio unit, for after the completion of by waiting task processing, broadcasting what is completed for indicating task processing
Readjustment is notified, is received to subscribe to other tasks of the waiting task after the readjustment notice, is carried out task processing behaviour
Make;
Transmitting element, for when it is determined that the waiting task being subscribed to by other tasks, readjustment notice being sent to and ordered
Other tasks of the waiting task are read, the readjustment notice is received to subscribe to other tasks of the waiting task
Afterwards, task processing operation is carried out.
Optionally, the judging unit is additionally operable in the readjustment clothes for causing the waiting task to subscribe to the dependence task
Before business, judge whether the dependence task handles completion;
The subscriber units are used for when the untreated completion of the dependence task so that the waiting task is subscribed to described
The readjustment service of dependence task.
Optionally, the judging unit includes:
First judge module, for judging whether the waiting task being capable of normal process;
First determining module, can not be normal for the waiting task for the judged result when first judge module
During processing, the untreated completion of the dependence task is determined.
Optionally, the judging unit includes:
Second judge module, for judging processing basis whether is recorded in the waiting task;
Second determining module, for having been recorded in being the waiting task when the judged result of second judge module
During processing basis, determine that the waiting task contains dependence task.
By above-mentioned technical proposal, the method and device for the task processing that the present invention is provided can be in task processing system
Receive after waiting task, first judge whether the waiting task contains dependence task, when it is determined that there is no dependence task, directly
Connect execution the waiting task, and when it is determined that containing dependence task when, by subscribe to dependence task readjustment service and monitor according to
The mode whether bad task adjusts back, to determine when the waiting task can be handled.It follows that each task of the present invention
It only need to be concerned about whether its being relied on for task completes, and when it is determined that its being relied on for task handles completion, can locate immediately
Reason, the reception without waiting all tasks converges without all tasks are stored in into the unified sequence of progress in an interim table
Always, so that the efficiency of whole system processing task is greatly improved.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the method for task processing provided in an embodiment of the present invention;
Fig. 2 shows the flow chart of the method for another task processing provided in an embodiment of the present invention;
Fig. 3 shows the flow chart of the method for another task processing provided in an embodiment of the present invention;
Fig. 4 shows a kind of method exemplary plot of task processing provided in an embodiment of the present invention;
Fig. 5 shows a kind of composition frame chart of the device of task processing provided in an embodiment of the present invention;
Fig. 6 shows the composition frame chart of the device of another task processing provided in an embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
The embodiments of the invention provide a kind of method of task processing, methods described is mainly used in task processing system
Side, as shown in figure 1, methods described mainly includes:
101st, judge whether waiting task contains dependence task.
Wherein, the task that the dependence task is relied on by the waiting task.Take office when task processing system is received
After the task that initiation system of being engaged in is sent, first the task can be preserved, then judge whether the task appoints containing dependence again
Business, that is, judge whether the task relies on the implementing result of other tasks, when it is determined that containing dependence task, to perform step
102-103, when it is determined that not having dependence task, directly handles the pending task.
Judge whether the specific implementation containing dependence task can be waiting task:Judge the waiting task
In whether record processing basis;If having recorded processing basis in the waiting task, it is determined that the waiting task contains
There is dependence task.Wherein, Back ground Information of the basis for one required by task of processing is handled.For example, current waiting task is
" information x " is added in news 1, then it is processing basis that can determine news 1, that is to say, that " addition news 1 " is that this is pending
The dependence task of task;Task processing system needs first to search whether there is news 1, only news in default memory space
1 is stored on default memory space, and information 1 could be added in news 1.
It can be deployed on same physical equipment it should be noted that task processing system and task initiate system, it is real
The internal data interaction of an existing physical equipment;It can also be deployed on two different physical equipments, realize that two physics are set
Data interaction between standby.
In addition, task is initiated mainly to include task metamessage, i.e. task in the task that system is sent to task processing system
Substantive content, can also include task and initiate IP (Internet Protocol, IP(Internet Protocol)) address of system, task processing
The information such as the IP address and task type of system.Because task processing system received task initiates the task that system is sent
In only task metamessage be substantive content needed for task processing, can be only by this so after a task is received
Task metamessage in business is preserved.
If the 102, the waiting task contains dependence task, the waiting task is caused to subscribe to the dependence task
Readjustment service.
When task processing system determines that waiting task contains dependence task, it is necessary to first determine that the dependence task has been located
Reason is completed, and the waiting task could be handled.In order to allow waiting task to know the complete of its being relied on for task in time
Into the time, the waiting task can be made to subscribe to the readjustment service of dependence task, to monitor dependence task to this pending
The readjustment of business.
Specifically, the specific of readjustment that be used for that task processing system can make the waiting task subscribe to dependence task connects
Mouthful, after the completion of being handled when dependence task, readjustment is sent by the special interface and notified.
103rd, after the readjustment for listening to the dependence task is notified, the waiting task is handled.
In actual applications, the possible only one of which dependence task of a task, it is also possible to have multiple dependence task.When current
Waiting task only one of which dependence task when, if listen to the dependence task readjustment notify, immediately treat this and wait to locate
Reason task;When current waiting task has multiple dependence task, the waiting task needs to subscribe to each respectively and rely on to appoint
The readjustment service of business, and while listening for the readjustment of each dependence task, after the readjustment for listening to all dependence task is notified,
Handle the waiting task.
The method of task processing provided in an embodiment of the present invention, can receive waiting task in task processing system
Afterwards, first judge whether the waiting task contains dependence task, when it is determined that there is no dependence task, directly perform this pending
Business, and when it is determined that containing dependence task, by subscribing to dependence task readjustment services and monitored what whether dependence task adjusted back
Mode, to determine when the waiting task can be handled.It follows that each task of the present invention need to only be concerned about that it is relied on
Task whether complete, and it is determined that its being relied on of the task is handled when completing, can immediately treat, it is all without waiting
The reception of task, collects without all tasks are stored in into the unified sequence of progress in an interim table, so that whole system
The efficiency of system processing task is greatly improved.
Further, according to the method shown in Fig. 1, an alternative embodiment of the invention additionally provides a kind of task processing
Method, as shown in Fig. 2 methods described mainly includes:
201st, judge whether waiting task contains dependence task;If the waiting task contains dependence task, hold
Row step 202;If the waiting task does not have dependence task, step 204 is performed, that is, handles the waiting task, and
After the completion of task processing, step 205 is performed.
If the 202, the waiting task contains dependence task, the waiting task is caused to subscribe to the dependence task
Readjustment service.
In actual applications, when receiving waiting task, the task that the waiting task is relied on may by
Processing is completed, therefore, if also carrying out the subscription operation of readjustment service in this case, can postpone the waiting task
Processing time, so that the task treatment effeciency reduction of whole system.In order to further improve the efficiency of task processing, this hair
Bright embodiment provides following improvement project:It is serviced in the readjustment for causing the waiting task to subscribe to the dependence task
Before, task processing system first judges whether the dependence task handles completion;Complete, cause if the dependence task is untreated
The waiting task subscribes to the readjustment service of the dependence task;If the dependence task is processed into immediately treating
The waiting task.
Wherein, judging the specific implementation whether dependence task handles completion can be:Judge described pending
Whether task being capable of normal process;If the waiting task is unable to normal process, it is determined that the dependence task is untreated complete
Into;If the waiting task being capable of normal process, it is determined that the dependence task it is processed into.
Exemplary, if task 1 is that " piece portion addition chart B " in news A, task 2 is " will to scheme in news A
Table B data X is revised as data Y ", then because task 2 needs to be handled on the basis of chart B, appoints so task 2 is relied on
Business 1, now task processing system can first judge whether task 2 being capable of normal process, however, it is determined that task 2 can normal process,
Then determine that the task 1 that task 2 is relied on has handled completion, however, it is determined that task 2 can not normal process, it is determined that task 2 is relied on
Task 1 it is untreated complete.That is, task 2 has first searched whether news A from default memory space, however, it is determined that can
News A is found from the default memory space, then searches again and whether there is chart B in news A, if there is chart in news A
B, then task processing system completion can have been handled to chart B processing, i.e. task 1 with task based access control 2, task 2 can be just
Often processing;If not having chart B in news A, task processing system can not realize that the processing to task 2, i.e. task 1 are also untreated
Complete, task 2 can not normal process.
203rd, after the readjustment for listening to the dependence task is notified, the waiting task is handled.
The specific implementation of this step is consistent with the specific implementation of above-mentioned steps 103, will not be repeated here.
205th, after the completion of by waiting task processing, broadcast for indicating that the readjustment that task processing is completed is notified,
Or when it is determined that the waiting task is subscribed to by other tasks, will adjust back to notify to be sent to and subscribe to the waiting task
Task, receives after the readjustment notice to subscribe to other tasks of the waiting task, carries out task processing operation.
Because current waiting task is also likely to be the dependence task of other tasks, so should in order to handle dependence in time
Other tasks of waiting task, can send readjustment and notify.Specifically, after the completion of waiting task processing, Ke Yitong
The mode for crossing broadcast goes out the readjustment notification broadcast that task has handled completion, when the subscribing to the waiting task of the task is received
After being notified to the readjustment, task processing operation can be carried out immediately.Or, after the completion of waiting task processing, first judge
Whether the waiting task has subscriber's (whether having other tasks to subscribe to the readjustment service of the waiting task), however, it is determined that should
Waiting task has subscriber, then the readjustment completed waiting task processing notifies to be sent to the subscriber, to subscribe to
Person is listened to after readjustment notice, carries out task processing operation;If it is determined that the waiting task does not have subscriber, then without any
Operation.
By the present embodiment, the task that can be divided into task processes accepts the stage and task monitors the stage.
As shown in figure 3, the operation that task accepts the stage mainly includes:(1) receiving and preserving current task (can only preserve task member letter
Breath);(2) judge whether current task contains dependence task, if without dependence task, performing step (5), if there is dependence to appoint
Business, then perform step (3);(3) judge whether dependence task handles completion, if processing is completed, step (5) is performed, if not having
Processing is completed, then performs step (4);(4) such that current task subscribes to the readjustment service of dependence task, and monitor wait dependence times
The readjustment of business is notified;(5) current task is handled, and after processing is completed, determines whether subscriber, if there is subscriber, is led to
The subscriber is known, if without subscriber, terminating the operation to current task.The operation that task monitors the stage mainly includes:(1)
The readjustment of dependence task after processing is completed is monitored to notify;(2) readjustment notice post processing current task is being listened to, and in processing
After the completion of, subscriber is determined whether, if there is subscriber, the subscriber is notified, if without subscriber, terminating to as predecessor
The operation of business.
The method of task processing provided in an embodiment of the present invention, can receive waiting task in task processing system
Afterwards, first judge whether the waiting task contains dependence task, when it is determined that there is no dependence task, directly perform this pending
Business, and when it is determined that containing dependence task, by subscribing to dependence task readjustment services and monitored what whether dependence task adjusted back
Mode, to determine when the waiting task can be handled.And after the completion of waiting task processing, by being somebody's turn to do to subscription
The task of waiting task sends readjustment and notified, realizes the timely processing of follow-up work.It follows that each task of the present invention
Only need to be concerned about its being relied on for task whether complete and whether have other tasks subscribe to current task, and it is determined that its institute according to
When bad task processing is completed, it can immediately treat, the reception without waiting all tasks is stored without by all tasks
Carry out unified sequence in an interim table to collect, so that the efficiency of whole system processing task is greatly improved.
Above method embodiment goes in any scene handled the task with dependence, below
The solution of the present invention is introduced exemplified by updating the data table:
If the task of tables of data initiates system includes task 1, task 2 to the task of the task processing system transmission of tables of data
And task 3, then by processing task 1 implement process exemplified by the solution of the present invention is introduced (as shown in Figure 4):
301st, task processing system receives task and initiates the task 1 that system is sent, and task 1 is preserved;
302nd, judge whether task 1 has dependence task;If task 1 is without dependence task, step 303 is performed;If task 1
Containing dependence task, and dependence task is task 2, then performs step 304;
For example, task 1 is " age attribute in tables of data 1 to be updated, and adds sex behind age attribute and is belonged to
Property and the corresponding specific sex of each student number ", task 2 for " in tables of data 1 add age attribute and each student number correspondence
Specific age value ", to processing task 1, then need first to handle task 2 so that adding age attribute in tables of data 1 and every
The corresponding specific age value of individual student number, therefore the dependence task 2 of task 1.Wherein, student number is the major key in tables of data 1, can be unique
A line in mark data table.
303rd, task 1 is handled, after the completion of task processing, performs step 306;
304th, cause the readjustment service of the subscription task 2 of task 1, and monitor the callback operation of task 2;
305th, when the readjustment of the task that listens to 2 is notified, task 1 is handled, and after the completion of task processing, perform step
306;
306th, after the completion of the processing of task 1, judge whether task 1 has subscriber;If task 1 is performed without subscriber
Step 308;If task 1 has subscriber, and subscriber is task 3, then performs step 307;
For example, task 1 is " age attribute in tables of data 1 to be updated, and adds sex behind age attribute and is belonged to
Property and the corresponding specific sex of each student number ", task 3 for " in tables of data 1 gender attribute behind add like attribute with
And each specific hobby of student number correspondence ", to processing task 3, then need first to handle task 1 so that adding sex in tables of data 1
Attribute and the corresponding specific sex of each student number, therefore the dependence task 1 of task 3.When 1 also untreated completion of task, task
Processing system can cause the readjustment service of the subscription task 1 of task 3, therefore when the processing of task 1 is completed, can adjust back task 3, with
Triggering task 3 is immediately treated.
307th, send readjustment to task 3 to notify, so that the processing for triggering task 3 is operated.
308th, the operation to task 1 is terminated.
Further, according to above method embodiment, an alternative embodiment of the invention additionally provides a kind of task processing
Device, as shown in figure 5, described device mainly includes:Judging unit 41, subscriber units 42 and processing unit 43.Wherein,
Judging unit 41, for judging whether waiting task contains dependence task, the dependence task is waited to locate to be described
The task that reason task is relied on;
Subscriber units 42, contain dependence task for the judged result when the judging unit 41 for the waiting task
When so that the waiting task subscribes to the readjustment service of the dependence task;
Processing unit 43, for after the readjustment for listening to the dependence task is notified, handling the waiting task.
Optionally, as shown in fig. 6, described device also includes:
Radio unit 44, for after the completion of by waiting task processing, broadcasting for indicating task processing completion
Readjustment notify, so as to subscribe to other tasks of the waiting task receive it is described readjustment notify after, carry out task processing
Operation;
Transmitting element 45, for when it is determined that the waiting task is subscribed to by other tasks, readjustment notice to be sent to
Other tasks of the waiting task are subscribed to, to receive the readjustment logical to subscribe to other tasks of the waiting task
After knowing, task processing operation is carried out.
Optionally, it is described to judge that single 41 yuan are additionally operable in the readjustment for make it that the waiting task subscribes to the dependence task
Before service, judge whether the dependence task handles completion;
The subscriber units 42 are used for when the untreated completion of the dependence task so that the waiting task subscribes to institute
State the readjustment service of dependence task.
Optionally, as shown in fig. 6, the judging unit 41 includes:
First judge module 411, for judging whether the waiting task being capable of normal process;
First determining module 412, for when first judge module 411 judged result for the waiting task not
During energy normal process, the untreated completion of the dependence task is determined.
Optionally, as shown in fig. 6, the judging unit 41 includes:
Second judge module 413, for judging processing basis whether is recorded in the waiting task;
Second determining module 414, used in being the waiting task when the judged result of second judge module 413
When recording processing basis, determine that the waiting task contains dependence task.
The device of task processing provided in an embodiment of the present invention, can receive waiting task in task processing system
Afterwards, first judge whether the waiting task contains dependence task, when it is determined that there is no dependence task, directly perform this pending
Business, and when it is determined that containing dependence task, by subscribing to dependence task readjustment services and monitored what whether dependence task adjusted back
Mode, to determine when the waiting task can be handled.It follows that each task of the present invention need to only be concerned about that it is relied on
Task whether complete, and it is determined that its being relied on of the task is handled when completing, can immediately treat, it is all without waiting
The reception of task, collects without all tasks are stored in into the unified sequence of progress in an interim table, so that whole system
The efficiency of system processing task is greatly improved.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment
" first ", " second " etc. be to be used to distinguish each embodiment, and do not represent the quality of each embodiment.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the 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 method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose alternative features identical, equivalent by offer come generation
Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed
One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice
In the method and device of microprocessor or digital signal processor (DSP) to realize task processing according to embodiments of the present invention
Some or all parts some or all functions.The present invention is also implemented as being used to perform side as described herein
The some or all equipment or program of device (for example, computer program and computer program product) of method.It is such
Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal
Formula is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (10)
1. a kind of method of task processing, it is characterised in that methods described includes:
Judge whether waiting task contains dependence task, the task that the dependence task is relied on by the waiting task;
If the waiting task contains dependence task, the waiting task is caused to subscribe to the readjustment clothes of the dependence task
Business;
After the readjustment for listening to the dependence task is notified, the waiting task is handled.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
After the completion of by waiting task processing, the readjustment notice for indicating task processing completion is broadcasted, or when true
When the fixed waiting task is subscribed to by other tasks, readjustment notice is sent to other of the subscription waiting task
Business, receives after the readjustment notice to subscribe to other tasks of the waiting task, carries out task processing operation.
3. according to the method described in claim 1, it is characterised in that subscribe to the dependence task causing the waiting task
Readjustment service before, methods described also includes:
Judge whether the dependence task handles completion;
The readjustment service for make it that the waiting task subscribes to the dependence task includes:
Completed if the dependence task is untreated, cause the waiting task to subscribe to the readjustment service of the dependence task.
4. method according to claim 3, it is characterised in that described to judge whether the dependence task handles completion bag
Include:
Judge whether the waiting task being capable of normal process;
If the waiting task is unable to normal process, it is determined that the dependence task is untreated to be completed.
5. method according to any one of claim 1 to 4, it is characterised in that described to judge whether waiting task contains
There is dependence task to include:
Judge processing basis whether is recorded in the waiting task;
If having recorded processing basis in the waiting task, it is determined that the waiting task contains dependence task.
6. a kind of device of task processing, it is characterised in that described device includes:
Judging unit, for judging whether waiting task contains dependence task, the dependence task is the waiting task
Being relied on for task;
Subscriber units, for when the judged result of the judging unit contains dependence task for the waiting task so that
The waiting task subscribes to the readjustment service of the dependence task;
Processing unit, for after the readjustment for listening to the dependence task is notified, handling the waiting task.
7. device according to claim 6, it is characterised in that described device also includes:
Radio unit, for after the completion of by waiting task processing, broadcasting for indicating the readjustment that task processing is completed
Notify, received to subscribe to other tasks of the waiting task after the readjustment notice, carry out task processing operation;
Transmitting element, for when it is determined that the waiting task is subscribed to by other tasks, readjustment notice to be sent into subscription institute
Other tasks of waiting task are stated, are received to subscribe to other tasks of the waiting task after the readjustment notice,
The processing operation of carry out task.
8. device according to claim 6, it is characterised in that the judging unit is additionally operable to causing described pending
Business is subscribed to before the readjustment service of the dependence task, judges whether the dependence task handles completion;
The subscriber units are used for when the untreated completion of the dependence task so that the waiting task subscribes to described rely on
The readjustment service of task.
9. device according to claim 8, it is characterised in that the judging unit includes:
First judge module, for judging whether the waiting task being capable of normal process;
First determining module, normal process is unable to for the judged result when first judge module for the waiting task
When, determine the untreated completion of the dependence task.
10. the device according to any one of claim 6 to 9, it is characterised in that the judging unit includes:
Second judge module, for judging processing basis whether is recorded in the waiting task;
Second determining module, for having recorded processing in being the waiting task when the judged result of second judge module
When basic, determine that the waiting task contains dependence task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042524.0A CN106970834A (en) | 2017-01-20 | 2017-01-20 | The method and device of task processing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042524.0A CN106970834A (en) | 2017-01-20 | 2017-01-20 | The method and device of task processing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106970834A true CN106970834A (en) | 2017-07-21 |
Family
ID=59334877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710042524.0A Pending CN106970834A (en) | 2017-01-20 | 2017-01-20 | The method and device of task processing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106970834A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423149A (en) * | 2017-07-31 | 2017-12-01 | 武汉斗鱼网络科技有限公司 | Task processing method and device |
CN110737537A (en) * | 2019-09-24 | 2020-01-31 | 贝壳技术有限公司 | contract message processing method, device, electronic equipment and storage medium |
CN111553545A (en) * | 2020-07-13 | 2020-08-18 | 四川新网银行股份有限公司 | Method for optimizing batch task scheduling dependence |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101425024A (en) * | 2008-10-24 | 2009-05-06 | 中国移动通信集团山东有限公司 | Multitasking method and device |
CN102981904A (en) * | 2011-09-02 | 2013-03-20 | 阿里巴巴集团控股有限公司 | Task scheduling method and system |
CN104461502A (en) * | 2014-11-03 | 2015-03-25 | 广州汇讯营销咨询有限公司 | Task management method and system based on Hadoop |
CN104714838A (en) * | 2013-12-12 | 2015-06-17 | 中国移动通信集团四川有限公司 | Task scheduling method and device |
CN104965754A (en) * | 2015-03-31 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Task scheduling method and task scheduling apparatus |
-
2017
- 2017-01-20 CN CN201710042524.0A patent/CN106970834A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101425024A (en) * | 2008-10-24 | 2009-05-06 | 中国移动通信集团山东有限公司 | Multitasking method and device |
CN102981904A (en) * | 2011-09-02 | 2013-03-20 | 阿里巴巴集团控股有限公司 | Task scheduling method and system |
CN104714838A (en) * | 2013-12-12 | 2015-06-17 | 中国移动通信集团四川有限公司 | Task scheduling method and device |
CN104461502A (en) * | 2014-11-03 | 2015-03-25 | 广州汇讯营销咨询有限公司 | Task management method and system based on Hadoop |
CN104965754A (en) * | 2015-03-31 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Task scheduling method and task scheduling apparatus |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107423149A (en) * | 2017-07-31 | 2017-12-01 | 武汉斗鱼网络科技有限公司 | Task processing method and device |
CN110737537A (en) * | 2019-09-24 | 2020-01-31 | 贝壳技术有限公司 | contract message processing method, device, electronic equipment and storage medium |
CN110737537B (en) * | 2019-09-24 | 2022-09-30 | 贝壳技术有限公司 | Contract message processing method and device, electronic equipment and storage medium |
CN111553545A (en) * | 2020-07-13 | 2020-08-18 | 四川新网银行股份有限公司 | Method for optimizing batch task scheduling dependence |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6955074B2 (en) | Techniques for Messaging Bot Rich Communication | |
CN110276060B (en) | Data processing method and device | |
CN104516794B (en) | Backup method, the apparatus and system of database file | |
CN106970834A (en) | The method and device of task processing | |
CN105554085B (en) | A kind of dynamic timeout treatment method and apparatus based on server connection | |
CN104468547B (en) | Establish the method, apparatus and system of long connection | |
US8935330B2 (en) | Redirecting messages in a publish/subscribe messaging system | |
CN107302597A (en) | Message official documents and correspondence method for pushing and device | |
CN107872373A (en) | Equipment control right sharing method and device, storage medium and server | |
CN103001941B (en) | The message shunt method logged in based on multiple spot and device | |
CN106713684A (en) | Method and equipment for binding unified communication client account number with phone number | |
CN103944942B (en) | A kind of data access method and device of more WEB environments | |
CN108924183A (en) | For handling the method and device of information | |
WO2011095029A1 (en) | Efficient data processing method and device | |
US10165118B1 (en) | Intelligent context aware contact workflow engine manager | |
CN106060111A (en) | Resource downloading method and device and terminal device | |
CN104144187B (en) | A kind of method, terminal, platform and system for obtaining application more redaction | |
CN104462514A (en) | Database high availability solution method, connection control device and system | |
CN106790290B (en) | Cloud service information processing method, browser and system | |
CN113076166A (en) | Method and device for processing page | |
CN106202373A (en) | Multiple terminals data processing method and data server | |
CN102710555B (en) | A kind of method for realizing transfer files in instant messaging, Apparatus and system | |
CN106886396A (en) | expression management method and device | |
CN106528337B (en) | Data backup method, device and system | |
CN105099873A (en) | Business card exchange method, equipment and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170721 |