CN106990943A - Parallel task treating method and apparatus - Google Patents
Parallel task treating method and apparatus Download PDFInfo
- Publication number
- CN106990943A CN106990943A CN201710202415.0A CN201710202415A CN106990943A CN 106990943 A CN106990943 A CN 106990943A CN 201710202415 A CN201710202415 A CN 201710202415A CN 106990943 A CN106990943 A CN 106990943A
- Authority
- CN
- China
- Prior art keywords
- task
- parallel
- session
- signaling zone
- execution state
- 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
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000011664 signaling Effects 0.000 claims abstract description 81
- 238000012545 processing Methods 0.000 claims abstract description 16
- 238000003672 processing method Methods 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 5
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 230000008878 coupling Effects 0.000 abstract description 10
- 238000010168 coupling process Methods 0.000 abstract description 10
- 238000005859 coupling reaction Methods 0.000 abstract description 10
- 230000000694 effects Effects 0.000 abstract description 6
- 230000009467 reduction Effects 0.000 abstract description 3
- 238000003860 storage Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006872 improvement Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000003750 conditioning effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
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/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/38—Concurrent instruction execution, e.g. pipeline or look ahead
- G06F9/3885—Concurrent instruction execution, e.g. pipeline or look ahead using a plurality of independent parallel functional units
- G06F9/3889—Concurrent instruction execution, e.g. pipeline or look ahead using a plurality of independent parallel functional units controlled by multiple instructions, e.g. MIMD, decoupled access or execute
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 embodiment of the present invention provides a kind of parallel task treating method and apparatus, wherein, this method includes:Determine whether current task performs completion in parallel task group;If performing completion, then the execution state that current task described in signaling zone is shared in the session corresponding to the parallel task group pre-established is adjusted to perform completion, wherein, the execution state that signaling zone is used to deposit each task performed parallel in corresponding parallel task group is shared in the session;In the case of it is determined that the execution state of each task is in performing completion in the shared signaling zone of the session, perform the task in next parallel task group, wherein, the task in next parallel task group is to need each task relied in the parallel task group to be performed both by the completing to perform of the task.The present invention solves the existing technical problem that system coupling is high, execution efficiency is low between the processing of existing parallel task, has reached effective reduction system degree of coupling, has improved the technique effect of execution efficiency.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of parallel task treating method and apparatus.
Background technology
In view of in computer aspect, being usually by the way of task flow for responding for request, i.e. user is on foreground
Initiating a task A submits backstage to perform, and then initiates another task B or multiple tasks again.Only this multiple tasks (A,
B ...) all perform after the completion of, can just perform next logic module.
For above-mentioned situation, existing way is:Assess task execution time, it is assumed that task execution time:Task B>Appoint
Be engaged in A, then when task A is completed, and notifies task B, is determined whether to again according to the task A states fed back after task B has been performed
Continue executing with next module.
For example:User buys paying member, after order is submitted, and running background is withholdd task, and the page continues to allow use
Family initiates to share red packet task, after running background withholds task, judges whether user shares red packet and decide whether to give bonus.So
After continue next step.That is, it is exactly above-mentioned next module to give bonus, and it is exactly above-mentioned task A and task B to withhold and share.
Following problem can be mainly present by being handled using aforesaid way:
1) consider less than abnormality processing, to perform the time as the assessment time, however, when actually performing, may
Due to hardware, network, resource problem etc., deviation can occur for the execution time.For example:Abnormal conditions task B is not obtained also after performing
To task A feedback, so as to cause to perform next logic module error.
2) efficiency is low, even if if when confiscating task A feedbacks, be waited for after the task of improvement B is performed.Etc. task
A is continued executing with when having feedback, so can also reduce the efficiency entirely performed, and, if task A does not feed back always, then can make
Into the generation of substantial amounts of packing phenomenon.
3) system coupling is high, and whether task B continues or whether implementing result is correct, by the feedback dependent on task A, such as
Fruit has that parallel task is a lot, and the complexity of system can rise at double.
In view of the above-mentioned problems, not yet proposing effective solution at present.
The content of the invention
The embodiment of the present invention provides a kind of parallel task treating method and apparatus, to reach effectively lifting parallel task processing
Efficiency, reduces the technique effect of system coupling.
On the one hand, the embodiments of the invention provide a kind of parallel task processing method, including:
Determine whether current task performs completion in parallel task group;
If performing completion, the session corresponding to the parallel task group pre-established is shared described in signaling zone
The execution state of current task is adjusted to perform completion, wherein, signaling zone is shared in the session to be used to deposit corresponding parallel
The execution state of each task performed parallel in business group;
In the case of it is determined that the execution state of each task is in performing completion in the shared signaling zone of the session, hold
Task in the next parallel task group of row, wherein, the task in next parallel task group is to need to rely on present parallel times
Each task in business group is performed both by the completing to perform of the task.
In one embodiment, it is being not carried out completing it is determined that there is execution state in the shared signaling zone of the session and be in
Task in the case of, determine the session share signaling zone whether exceed default expired duration;
If it was exceeded, initializing the execution state and expired duration in the shared signaling zone of the session.
In one embodiment, the execution state by 0 and 1 mark task in signaling zone is shared in the session.
In one embodiment, before it is determined that whether current task performs completion in parallel task group, methods described
Also include:
Receive parallel task group and initiate request;
Initiate to ask in response to the parallel task group, set up the corresponding session of the parallel task group and share signaling zone;
Initialize the execution state and expired duration in the shared signaling zone of the session.
In one embodiment, institute in signaling zone is shared into the session corresponding to the parallel task group pre-established
The execution state for stating current task is adjusted to perform completion, including:
Obtain the task identification of the current task;
According to the task identification of the current task, the current task pair is found out from the shared signaling zone of the session
The execution state answered;
The corresponding execution state of the current task found out is adjusted to perform completion.
On the other hand, the embodiments of the invention provide a kind of parallel task processing unit, including:
First determining module, for determining whether current task performs completion in parallel task group;
Adjusting module, in the case where the first determining module determines that the current task performs completion, will build in advance
The execution state that current task described in signaling zone is shared in the vertical session corresponding to the parallel task group is adjusted to have performed
Into, wherein, the execution that signaling zone is used to deposit each task performed parallel in corresponding parallel task group is shared in the session
State;
Performing module, for it is determined that the session shares the execution state of each task in signaling zone in holding
In the case of row completion status, the task in next parallel task group is performed, wherein, the task in next parallel task group
It is to need each task relied in present parallel task groups to be performed both by the completing to perform of the task.
In one embodiment, said apparatus also includes:
Second determining module, for being not carried out completing it is determined that there is execution state in the shared signaling zone of the session and be in
Task in the case of, determine the session share signaling zone whether exceed default expired duration;
First initialization module, for it is determined that in the case of beyond default expired duration, initializing the session and being total to
Enjoy the execution state and expired duration in signaling zone.
In one embodiment, the execution state by 0 and 1 mark task in signaling zone is shared in the session.
In one embodiment, said apparatus also includes:
Receiving module, for before it is determined that whether current task performs completion in parallel task group, receiving parallel appoint
Business group initiates request;
Module is set up, for initiating to ask in response to the parallel task group, the corresponding meeting of the parallel task group is set up
The shared signaling zone of words;
Second initialization module, for initializing execution shape body and expired duration in the shared signaling zone of the session.
In one embodiment, the adjusting module includes:
Acquiring unit, the task identification for obtaining the current task;
Searching unit, for the task identification according to the current task, finds out from the shared signaling zone of the session
The corresponding execution state of the current task;
Adjustment unit, for the corresponding execution state of the current task found out to be adjusted to perform completion.
Above-mentioned technical proposal has the advantages that:Share signaling zone by setting session, parallel task group each
Task is shared to the session and execution state is changed in signaling zone all after the completion of execution, and avoids the mutual friendship between task
Mutual and dependence, it is only necessary to which the execution status indicator that each task in signaling zone is shared by the session is that can determine that parallel task is
It is no to be carried out completing, determine whether to perform next parallel task group.Solve institute between existing parallel task processing
The technical problem that the system coupling of presence is high, execution efficiency is low, has reached effective reduction system degree of coupling, and raising performs effect
The technique effect of rate.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is parallel task process flow figure according to embodiments of the present invention;
Fig. 2 is the schematic diagram of the shared signaling zone of parallel task processing according to embodiments of the present invention;
Fig. 3 is the logical flow chart of parallel task processing according to embodiments of the present invention;
Fig. 4 is the structured flowchart of parallel task processing unit according to embodiments of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Exist each other in view of existing parallel task and rely on, i.e. first completing for task needs what is completed backward to appoint
Business is sent completely instruction, after the completion of the task of rear completion, then performs next task module, i.e. next parallel task group.This
Dependence is too big between sample task, causes the system degree of coupling higher, and inefficiency.
Therefore, in this example, it is proposed that a kind of parallel task processing method, by setting session to share signaling zone, parallel
Each task of task groups is shared to the session and execution state is changed in signaling zone all after the completion of execution, and avoids task
Between interact and rely on, it is only necessary to share in signaling zone that the execution status indicator of each task can be true by the session
Determine whether parallel task has been carried out completion, determine whether to perform next task module.
Specifically, as shown in figure 1, the parallel task processing method may include steps of:
Step 101:Determine whether current task performs completion in parallel task group;
I.e., it is assumed that current task group has 5 performing parallel for tasks:Task A, task B, task C, task D and task E.
Only this five tasks are carried out after completion, can just perform next parallel task group.
Specifically, for each task, can determine whether itself performs completion.
Step 102:If performing completion, signal is shared into the session corresponding to the parallel task group pre-established
The execution state of current task described in area is adjusted to perform completion, wherein, signaling zone is shared in the session to be used to deposit correspondence
Parallel task group in the execution state of each task that performs parallel;
After the completion of it is determined that itself having performed, it is possible to shared to default session in signaling zone, set the task to be
Completion status.In signaling zone is shared in the session, a mark (such as taskID) can be set for each task, so,
Task matches the ID of itself, and the configured information corresponding to the ID of itself is modified, and is revised as completion status.
So by session share signaling zone be assured that out whether all tasks all executeds in parallel task group
Complete.
When realizing, it can identify whether task completes by the way of 0 and 1, for example:0 represents not completing, 1 table
Show and completed.So when shared signaling zone initialization is carried out, it is possible to which the corresponding sign of each task is initial
0 is turned to, after the completion of which tasks carrying, it is possible to itself corresponding mark is revised as 1 by 0, so as to show the task
Complete.
Step 103:It is determined that the execution state that each task in signaling zone is shared in the session is in performing what is completed
In the case of, the task in next parallel task group is performed, wherein, the task in next parallel task group is to need to rely on to work as
Each task in preceding parallel task group is performed both by the completing to perform of the task.
In view of that can have abnormal conditions, some tasks can not perform completion due to network or hardware all reasons sometimes,
Task is caused to accumulate if progress etc. is to be identified always, therefore, when can be that the shared signaling zone setting one of each session is expired
It is long, if it is determined that the session shares signaling zone and exceeds default expired duration, then signaling zone just is shared into the session and entered
Row initialization operation, counts new task groups again.
If in preset duration, determining that all tasks are carried out completing, then the next task mould of execution can be triggered
Block, if without all completing, then continue to wait.When actually realizing, upon initialization, it is possible to wait to be received
Tasks carrying pass signal is to update signaling zone.
Can be one for the task in the task or next parallel task group in above-mentioned mentioned next task module
Individual task or one group of multiple parallel task, but the execution of the task in next task module is, it is necessary to before relying in the lump
Task in row task groups is carried out completing, and can just perform.
Before above-mentioned steps 101, parallel task group can also be received and initiate request, then, in response to described parallel
Task groups initiate request, set up the session and share signaling zone;Initialize the session share signaling zone in configured information and
Expired duration.
Above-mentioned parallel task processing method is illustrated with reference to a specific embodiment, it is important to note, however, that
The specific embodiment does not constitute the improper restriction to the application merely to the application is better described.
As shown in Fig. 2 may include steps of:
S1:Task sharing signaling zone, initialization data and expired time are set up according to session sessionid or uid.
The shared signaling zone can be with as shown in figure 3, the state of the task and each task in mark task groups.
S2:Receive and next pass signal is transmitted through from different task, and update the corresponding signal condition of business of changing to.
S3:Judge whether the expired time expiretime in current demand signal area is expired, if expired execution step S1,
S4:The condition X for meeting execution task is read, whether comparison signal area signal data meets condition X (that is, Suo Youren
The corresponding mark of business is all for 1).
S5:If meeting condition, corresponding task module is performed, if be unsatisfactory for, next task is continued waiting for
Pass signal.
In upper example, by setting up task sharing signaling zone, held according to the state after the renewal of different task pass signal
Row meets the task module of condition, has reached the stable collaborative work without dependence between parallel task.Abnormal feelings are taken into full account
Condition, ignores task execution time uncertainty, only focuses on whether final outcome signal condition meets execution condition.Session is set
Expired time, it is to avoid this session suspension of task also has expired signal data.Further, parallel efficiency is lifted, parallel
Task only notifies state to shared signaling zone without waiting for continuing executing with subsequent treatment function in the completed.Shorten tasks carrying
Time.Meanwhile, system coupling is reduced, and interaction is not present between task, and each task is to communicate and have altogether with shared signaling zone
Enjoying signaling zone, triggering meets conditioning tasks automatically, the flow of tasks carrying be only concerned oneself whether success or failure, without judging
Other task statuses.
Based on same inventive concept, a kind of parallel task processing unit is additionally provided in the embodiment of the present invention, as following
Described in embodiment.Because the principle that parallel task processing unit solves problem is similar to parallel task processing method, therefore parallel
The implementation of Task Processing Unit may refer to the implementation of parallel task processing method, repeats part and repeats no more.It is following to be used
, term " unit " or " module " can realize the combination of the software and/or hardware of predetermined function.Although following examples institute
The device of description is preferably realized with software, but hardware, or the realization of the combination of software and hardware is also possible and quilt
Conception.Fig. 4 is a kind of structured flowchart of the parallel task processing unit of the embodiment of the present invention, as shown in figure 4, can include:
First determining module 401, adjusting module 402 and performing module 403, are illustrated to the structure below.
First determining module 401, for determining whether current task performs completion in parallel task group;
Adjusting module 402, will in the case of determining the current task execution completion in the first determining module 401
The execution state that current task described in signaling zone is shared in the session corresponding to the parallel task group pre-established is adjusted to
Completion is performed, wherein, the execution state that signaling zone is used to deposit each task of corresponding parallel task group is shared in the session;
Performing module 403, for it is determined that the execution state that each task in signaling zone is shared in the session has been located
In the case of completion status is performed, the task in next parallel task group is performed, wherein, in next parallel task group
Task is to need each task relied in present parallel task groups to be performed both by the completing to perform of the task.
In one embodiment, above-mentioned parallel task processing unit can also include:Second determining module, for determining
The session shares whether signaling zone exceeds default expired duration;First initialization module, for it is determined that beyond default
In the case of expired duration, the execution state and expired duration in the shared signaling zone of the session are initialized.
In one embodiment, the 0 and 1 execution state for identifying task can be passed through in the shared signaling zone of above-mentioned session.
In one embodiment, 0 represent that corresponding task is not carried out completing, 1 represents that corresponding task executed is completed.
In one embodiment, above-mentioned parallel task processing unit can also include:Receiving module, for it is determined that simultaneously
Before whether current task performs completion in row task groups, receive parallel task group and initiate request;Module is set up, for responding
Initiate to ask in the parallel task group, set up the corresponding session of the parallel task group and share signaling zone;Second initialization mould
Block, execution state and expired duration in signaling zone are shared for initializing the session.
In one embodiment, above-mentioned adjusting module 402 can include:Acquiring unit, it is described as predecessor for obtaining
The task identification of business;Searching unit, for the task identification according to the current task, is looked into from the shared signaling zone of the session
Find out the corresponding execution state of the current task;Adjustment unit, for by the current task found out it is corresponding perform
State is adjusted to perform completion.
Above-mentioned technical proposal has the advantages that:Share signaling zone by setting session, parallel task group each
Task is shared to the session and execution state is changed in signaling zone all after the completion of execution, and avoids the mutual friendship between task
Mutual and dependence, it is only necessary to which the execution status indicator that each task in signaling zone is shared by the session is that can determine that parallel task is
It is no to be carried out completing, determine whether to perform next parallel task group.Solve institute between existing parallel task processing
The technical problem that the system coupling of presence is high, execution efficiency is low, has reached effective reduction system degree of coupling, and raising performs effect
The technique effect of rate.
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed
(illustrative logical block), unit, and step can be by the knots of electronic hardware, computer software, or both
Conjunction is realized.To clearly show that the replaceability (interchangeability) of hardware and software, above-mentioned various explanations
Property part (illustrative components), unit and step universally describe their function.Such work(
Can be that the design requirement depending on specific application and whole system is realized by hardware or software.Those skilled in the art
For every kind of specific application various methods can be used to realize described function, but this realization is understood not to
The scope protected beyond the embodiment of the present invention.
Various illustrative logical blocks described in the embodiment of the present invention, or unit can by general processor,
Digital signal processor, application specific integrated circuit (ASIC), field programmable gate array or other programmable logic devices, discrete gate
Or the design of transistor logic, discrete hardware components, or any of the above described combination is come the function described by realizing or operate.General place
It can be microprocessor to manage device, and alternatively, the general processor can also be any traditional processor, controller, microcontroller
Device or state machine.Processor can also be realized by the combination of computing device, such as digital signal processor and microprocessor,
Multi-microprocessor, one or more microprocessors combine a Digital Signal Processor Core, or any other like configuration
To realize.
The step of method described in the embodiment of the present invention or algorithm can be directly embedded into hardware, computing device it is soft
Part module or the combination of both.Software module can be stored in RAM memory, flash memory, ROM memory, EPROM storages
Other any form of storage media in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this area
In.Exemplarily, storage medium can be connected with processor, to allow processor to read information from storage medium, and
Write information can be deposited to storage medium.Alternatively, storage medium can also be integrated into processor.Processor and storage medium can
To be arranged in ASIC, ASIC can be arranged in user terminal.Alternatively, processor and storage medium can also be arranged at use
In different parts in the terminal of family.
In one or more exemplary designs, above-mentioned functions described by the embodiment of the present invention can be in hardware, soft
Part, firmware or any combination of this three are realized.If realized in software, these functions can be stored and computer-readable
On medium, or with it is one or more instruction or code form be transmitted on the medium of computer-readable.Computer readable medium includes electricity
Brain stores medium and is easy to so that allowing computer program to be transferred to other local telecommunication medias from a place.Storing medium can be with
It is that any general or special computer can be with the useable medium of access.For example, such computer readable media can include but
It is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage devices, or other
What can be used for carrying or store with instruct or data structure and it is other can be by general or special computer or general or specially treated
Device reads the medium of the program code of form.In addition, any connection can be properly termed computer readable medium, example
Such as, if software is to pass through a coaxial cable, fiber optic cables, double from web-site, server or other remote resources
Twisted wire, Digital Subscriber Line (DSL) or with defined in being also contained in of the wireless way for transmitting such as infrared, wireless and microwave
In computer readable medium.Described disk (disk) and disk (disc) include Zip disk, radium-shine disk, CD, DVD, floppy disk
And Blu-ray Disc, disk is generally with magnetic duplication data, and disk generally carries out optical reproduction data with laser.Combinations of the above
It can also be included in computer readable medium.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included
Within protection scope of the present invention.
Claims (10)
1. a kind of parallel task processing method, it is characterised in that including:
Determine whether current task performs completion in parallel task group;
If performing completion, the session corresponding to the parallel task group pre-established is shared current described in signaling zone
The execution state of task is adjusted to perform completion, wherein, signaling zone is shared in the session to be used to deposit corresponding parallel task group
In the execution state of each task that performs parallel;
In the case of it is determined that the execution state of each task is in performing completion in the shared signaling zone of the session, under execution
Task in one parallel task groups, wherein, the task in next parallel task group is to need to rely on present parallel task groups
In each task be performed both by completing could the performing of the task.
2. according to the method described in claim 1, it is characterised in that performing shape it is determined that existing in the shared signaling zone of the session
In the case that state is in being not carried out completing of the task, determine that the session shares whether signaling zone exceeds default expired duration;
If it was exceeded, initializing the execution state and expired duration in the shared signaling zone of the session.
3. according to the method described in claim 1, it is characterised in that the session is shared in signaling zone by 0 and 1 mark task
Execution state.
4. according to the method described in claim 1, it is characterised in that it is determined that whether current task has performed in parallel task group
Into before, methods described also includes:
Receive parallel task group and initiate request;
Initiate to ask in response to the parallel task group, set up the corresponding session of the parallel task group and share signaling zone;
Initialize the execution state and expired duration in the shared signaling zone of the session.
5. according to the method described in claim 1, it is characterised in that by the meeting corresponding to the parallel task group pre-established
The execution state of current task is adjusted to perform completion described in the shared signaling zone of words, including:
Obtain the task identification of the current task;
According to the task identification of the current task, from the session share signaling zone in find out the current task corresponding
Execution state;
The corresponding execution state of the current task found out is adjusted to perform completion.
6. a kind of parallel task processing unit, it is characterised in that including:
First determining module, for determining whether current task performs completion in parallel task group;
Adjusting module, in the case where the first determining module determines that the current task performs completion, by what is pre-established
The execution state of current task is adjusted to perform completion described in the shared signaling zone of session corresponding to the parallel task group, its
In, the execution state that signaling zone is used to deposit each task performed parallel in corresponding parallel task group is shared in the session;
Performing module, for it is determined that the session shares the execution state of each task in signaling zone in having performed
In the case of state, the task in next parallel task group is performed, wherein, the task in next parallel task group is to need
Rely on the task that each task in present parallel task groups is performed both by completing to perform.
7. device according to claim 6, it is characterised in that also include:
Second determining module, for it is determined that there is execution state in the shared signaling zone of the session is in times for being not carried out completing
In the case of business, determine that the session shares whether signaling zone exceeds default expired duration;
First initialization module, for it is determined that in the case of beyond default expired duration, initializing the shared letter of the session
Execution state and expired duration in number area.
8. device according to claim 6, it is characterised in that the session is shared in signaling zone by 0 and 1 mark task
Execution state.
9. device according to claim 6, it is characterised in that also include:
Receiving module, for before it is determined that whether current task performs completion in parallel task group, receiving parallel task group
Initiate request;
Module is set up, for initiating to ask in response to the parallel task group, the corresponding session of the parallel task group is set up and is total to
Enjoy signaling zone;
Second initialization module, for initializing execution state and expired duration in the shared signaling zone of the session.
10. device according to claim 6, it is characterised in that the adjusting module includes:
Acquiring unit, the task identification for obtaining the current task;
Searching unit, for the task identification according to the current task, finds out described from the shared signaling zone of the session
The corresponding execution state of current task;
Adjustment unit, for the corresponding execution state of the current task found out to be adjusted to perform completion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710202415.0A CN106990943A (en) | 2017-03-30 | 2017-03-30 | Parallel task treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710202415.0A CN106990943A (en) | 2017-03-30 | 2017-03-30 | Parallel task treating method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106990943A true CN106990943A (en) | 2017-07-28 |
Family
ID=59411903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710202415.0A Pending CN106990943A (en) | 2017-03-30 | 2017-03-30 | Parallel task treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106990943A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104306A (en) * | 2018-07-26 | 2018-12-28 | 东软集团股份有限公司 | Process analytic method, device, computer readable storage medium and electronic equipment |
CN112689827A (en) * | 2020-10-27 | 2021-04-20 | 华为技术有限公司 | Model reasoning exception handling method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419615A (en) * | 2008-12-10 | 2009-04-29 | 阿里巴巴集团控股有限公司 | Method and apparatus for synchronizing foreground and background databases |
CN101853182A (en) * | 2010-05-05 | 2010-10-06 | 中兴通讯股份有限公司 | Task execution method and device based on database |
CN104850504A (en) * | 2015-05-26 | 2015-08-19 | 华中科技大学 | Equation parallel computing method for accelerating XOR based RAID-6 coding/decoding process |
US20160019326A1 (en) * | 2008-03-27 | 2016-01-21 | Rocketick Technologies Ltd. | Design simulation using parallel processors |
CN105446808A (en) * | 2015-11-12 | 2016-03-30 | 国云科技股份有限公司 | Method for compound task to complete complex task |
-
2017
- 2017-03-30 CN CN201710202415.0A patent/CN106990943A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160019326A1 (en) * | 2008-03-27 | 2016-01-21 | Rocketick Technologies Ltd. | Design simulation using parallel processors |
CN101419615A (en) * | 2008-12-10 | 2009-04-29 | 阿里巴巴集团控股有限公司 | Method and apparatus for synchronizing foreground and background databases |
CN101853182A (en) * | 2010-05-05 | 2010-10-06 | 中兴通讯股份有限公司 | Task execution method and device based on database |
CN104850504A (en) * | 2015-05-26 | 2015-08-19 | 华中科技大学 | Equation parallel computing method for accelerating XOR based RAID-6 coding/decoding process |
CN105446808A (en) * | 2015-11-12 | 2016-03-30 | 国云科技股份有限公司 | Method for compound task to complete complex task |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109104306A (en) * | 2018-07-26 | 2018-12-28 | 东软集团股份有限公司 | Process analytic method, device, computer readable storage medium and electronic equipment |
CN112689827A (en) * | 2020-10-27 | 2021-04-20 | 华为技术有限公司 | Model reasoning exception handling method and device |
CN112689827B (en) * | 2020-10-27 | 2022-06-28 | 华为技术有限公司 | Model reasoning exception handling method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9239868B2 (en) | Virtual session management and reestablishment | |
CN103946800B (en) | Lossless uninterrupted message processing method during system software upgrading | |
US8239701B2 (en) | Methods and apparatus for power allocation in a storage system | |
EP2466824A1 (en) | Service scheduling method and device | |
CN107273231A (en) | Distributed memory system hard disk tangles fault detect, processing method and processing device | |
JP2017527912A (en) | Method, device and system for invoking a local service assembly by a browser | |
WO2015101091A1 (en) | Distributed resource scheduling method and device | |
CN104092763B (en) | A kind of application program installation kit method for pushing and device | |
CN102662740A (en) | Asymmetric multi-core system and realization method thereof | |
CN106990943A (en) | Parallel task treating method and apparatus | |
CN103703441A (en) | Hard disk and data processing method | |
CN105389207A (en) | Adaptive data request processing method and apparatus, task scheduler and adaptive data request processing system | |
CN104516478B (en) | Plant capacity is throttled | |
WO2013040959A1 (en) | Method for flexible configuration migration between passive optical network (pon) ports | |
CN106685974A (en) | Establishing and providing method and device of safety protection services | |
CN107678923A (en) | A kind of optimization method of distributed file system Message Processing | |
CN110928685A (en) | Intelligent cooperative computing system and method | |
US20160124855A1 (en) | Processing an input/ output operation request | |
CN110704211A (en) | Method and system for receiving packets across CPUs (central processing units) in multi-core system | |
CN107247648A (en) | Method, the apparatus and system of remote items system supervisory are realized based on Docker | |
CN109542636A (en) | A kind of method and device that data update | |
US8650281B1 (en) | Intelligent arbitration servers for network partition arbitration | |
CN102801686B (en) | Apparatus control method, main equipment, from equipment and master-slave equipment group | |
CN103828294B (en) | Fiduciary power management | |
CN109002286A (en) | Data asynchronous processing method and device based on synchronous programming |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |
|
RJ01 | Rejection of invention patent application after publication |