CN102253860A - Asynchronous operation method and asynchronous operation management device - Google Patents

Asynchronous operation method and asynchronous operation management device Download PDF

Info

Publication number
CN102253860A
CN102253860A CN2011101956803A CN201110195680A CN102253860A CN 102253860 A CN102253860 A CN 102253860A CN 2011101956803 A CN2011101956803 A CN 2011101956803A CN 201110195680 A CN201110195680 A CN 201110195680A CN 102253860 A CN102253860 A CN 102253860A
Authority
CN
China
Prior art keywords
task
priority
pending
asynchronous
list
Prior art date
Application number
CN2011101956803A
Other languages
Chinese (zh)
Inventor
曾启明
Original Assignee
深圳市万兴软件有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市万兴软件有限公司 filed Critical 深圳市万兴软件有限公司
Priority to CN2011101956803A priority Critical patent/CN102253860A/en
Publication of CN102253860A publication Critical patent/CN102253860A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

The embodiment of the invention discloses an asynchronous operation method and an asynchronous operation management device. The method comprises the following steps of: writing tasks to be executed in a task list with the corresponding priorities in a task set according to the priorities of the tasks to be executed, wherein the tasks to be executed are tasks which are needed to be asynchronously executed; taking the tasks to be executed out in turn according to the priority sequence of the task list in the task set; and operating the task to be executed which is taken out of the task list, and managing the operation thread of the task. A relatively high-efficiency, convenient and safe processing procedure can be provided for asynchronous operation, the asynchronous operation of the conventional software is supported, and the asynchronous operation method and the asynchronous operation management device in the embodiment of the invention have the advantages that the method and the device are high-efficiency, practical and safe, and the like.

Description

A kind of asynchronous operation method and asynchronous operation management devices

Technical field

The present invention relates to the computing machine electronic applications, relate in particular to a kind of asynchronous operation method and asynchronous operation management devices.

Background technology

The software of access to netwoks type, computation-intensive or IO intensity need design a lot of asynchronous operations usually, and these asynchronous operations are used for realizing network service response, background task processing and IO interrupt mechanism etc.Asynchronous notion and locking phase are right, and after an asynchronous operation task was sent, caller can not obtain the result at once.The parts of this asynchronous operation of actual treatment are notified caller by state, notice and readjustment after finishing.The both sides of asynchronous operation do not need common clock, and just the take over party does not know when transmit leg sends, so the information that will have the prompting take over party to begin to receive in the information that sends as the start bit, has position of rest during end.

But, the inventor finds that in implementing process of the present invention the asynchronous operation of being adopted at present lacks limited management in software development, simply finish corresponding thinking according to the time sequencing of sending asynchronous operation, make software slower, influence user's experience important task response.Simultaneously, asynchronous operation can make software configuration become more complicated usually, and asynchronous operation is often dealt with improperly and brought serious quality risk to software.

Summary of the invention

Embodiment of the invention technical matters to be solved is, a kind of asynchronous operation method and asynchronous operation management devices are provided, can provide efficient, a convenient and safe relatively processing procedure to asynchronous operation, support the asynchronous operation of conventional software, advantage such as asynchronous operation method that the embodiment of the invention provides and asynchronous operation management devices have efficiently, practical and safe.

In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of asynchronous operation method, comprising:

According to the priority of pending task, described pending task is write in the task list that has corresponding priority in the task-set; Described pending task is for needing the task of asynchronous execution;

According to the priority orders of task list in the described task-set, take out pending task successively;

The pending task that operation is taken out from task list, and manage the active thread of this task.

Wherein, described priority according to pending task, write described pending task in the task list that has corresponding priority in the task-set before, also comprise:

Foundation is used to pending task to determine the models of priority of its priority, and described models of priority is corresponding one by one to the priority of each task list in the priority classification of described pending task and the described task-set.

Wherein, described priority according to pending task writes described pending task in the task list that has corresponding priority in the task-set, comprising:

According to the models of priority that presets, for pending task is determined priority;

The precedence information of pending task is encapsulated in the described pending task;

The described pending task that has precedence information is sent to task-set;

According to the priority of described pending task, it is write in the task list that has corresponding priority in the described task-set.

Wherein, described priority according to described pending task, it is write in the task list that has corresponding priority in the described task-set, comprising:, in the task list of correspondence, arrange according to the submission time of pending task for pending task with equal priority;

Described priority orders according to task list in the described task-set is taken out pending task successively, comprising: for the pending task in the same task list, take out successively according to the submission time of pending task.

Accordingly, the embodiment of the invention also provides a kind of asynchronous operation management devices, comprising:

The task-set administration module is used for the priority according to pending task, and described pending task is write in the task list that has corresponding priority in the task-set; Described pending task is for needing the task of asynchronous execution;

The mission thread administration module is used for the priority orders according to task list in the described task-set, takes out pending task successively, and manages the active thread of this task.

Wherein, described asynchronous operation management devices also comprises:

The task priority administration module is used to be established as the models of priority that pending task is determined its priority; And according to described models of priority, for pending task is determined priority.

Wherein, described task priority administration module comprises:

The model management unit is used to be established as the models of priority that pending task is determined its priority; Described models of priority is corresponding one by one to the priority of each task list in the priority classification of described pending task and the described task-set;

The operation encapsulation unit is used for the precedence information of pending task is encapsulated in described pending task, and the described pending task that has precedence information is sent to described task-set administration module.

Wherein, described task-set administration module comprises:

The classification of task unit is used for the priority according to pending task, and described pending task is write in the task list that has corresponding priority in the task-set; For pending task, in the task list of correspondence, arrange according to the submission time of described pending task with equal priority;

List management unit is used for described pending task to be write in the task-set in described classification of task unit, and when not having the task list of corresponding priority in the described task-set, creates the task list with corresponding priority in described task-set.

Wherein, described mission thread administration module comprises:

The task extraction unit is used for the priority orders according to described task-set task list, takes out pending task successively; For pending task in the same task list, take out successively according to the submission time of described pending task;

Thread-management unit is used to preset the task run thread, and management is by the active thread of the pending task of described task extraction unit taking-up; The described task run thread that presets comprises: initialization is preset, resource is released the branch configuration, resource discharges and presets.

Wherein, described mission thread administration module also comprises:

The task-set monitoring module is used for monitoring the state of described task-set task list, when all task lists are all vacant, control described mission thread administration module and enters sleep state; There have new pending task to write in the task list of described task-set to be fashionable, wakes described mission thread administration module up.

Asynchronous operation method that the embodiment of the invention provided and asynchronous operation management devices, can provide efficient, a convenient and safe relatively processing procedure to asynchronous operation, support the asynchronous operation of conventional software, advantage such as asynchronous operation method that the embodiment of the invention provides and asynchronous operation management devices have efficiently, practical and safe.

Description of drawings

In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.

Fig. 1 is the asynchronous operation method first embodiment schematic flow sheet provided by the invention;

Fig. 2 is the asynchronous operation method second embodiment schematic flow sheet provided by the invention;

Fig. 3 is a task-set synoptic diagram provided by the invention;

Fig. 4 is the asynchronous operation management devices first example structure synoptic diagram provided by the invention;

Fig. 5 is the asynchronous operation management devices second example structure synoptic diagram provided by the invention.

Embodiment

Asynchronous operation method that the embodiment of the invention provided and asynchronous operation management devices, can provide efficient, a convenient and safe relatively processing procedure to asynchronous operation, support the asynchronous operation of conventional software, advantage such as asynchronous operation method that the embodiment of the invention provides and asynchronous operation management devices have efficiently, practical and safe.

Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.

Referring to Fig. 1, be the asynchronous operation method first embodiment schematic flow sheet provided by the invention, as shown in Figure 1:

At step S100,, described pending task is write in the task list that has corresponding priority in the task-set according to the priority of pending task; Described pending task is for needing the task of asynchronous execution.

At step S101,, take out pending task successively according to the priority orders of task list in the described task-set.

At step S102, the pending task that operation is taken out from task list, and manage the active thread of this task.

The asynchronous operation method that the embodiment of the invention provided is classified to asynchronous operation according to priority, provides efficient, a convenient and safe relatively processing procedure to asynchronous operation.The asynchronous operation method that present embodiment provides is supported the asynchronous operation of conventional software, has advantages such as efficient, practical and safety.

Referring to Fig. 2, be the asynchronous operation method second embodiment schematic flow sheet provided by the invention, in the present embodiment, with the flow process of this asynchronous operation method of more detailed description.Need to prove that task-set can be sky under original state, create the task list of different priorities according to the priority of the pending task that writes at every turn, the pending task of different priorities writes in the task list of corresponding priority.Be to deposit pending task in each task list with equal priority.Like this, in the present embodiment, management is convenient in task list additions and deletions flexibly as required.Simultaneously, also need to set up the models of priority that is used to pending task to determine its priority, described models of priority is corresponding one by one to the priority of each task list in the priority classification of described pending task and the described task-set.

In the present embodiment, with the priority of pending task high, medium and low three classes being arranged is that example describes.In actual applications, the priority of pending task can be with any ordered list layout, as numeral, might not with " height ", " in ", " low " classification.In the present embodiment, be that example describes (as shown in Figure 3) with high, medium and low three class priority, be intended to help the public better to understand the present invention.Set up three task lists in task-set, the priority of three task lists is respectively high, medium and low three classes.Priority is that to be used to write priority be the pending task that is similarly high to high task list; It is the pending task that is similarly that the task list of priority in being is used for writing priority; Priority is that to be used to write priority be the pending task that is similarly low to low task list.

Simultaneously, also need to set up the models of priority that is used to pending task to determine its priority, described models of priority can be divided into high, medium and low three classes with pending task according to the type of pending task, and is corresponding with the priority of each task list in the task-set.

Certainly, the actual conditions that can have more system are provided with the classification of priority.In simple system, for the classification of priority still less (for example two classes); In the system of complexity, can more (for example six classes) for the classification of priority.Present embodiment is that example describes with high, medium and low three class priority, is intended to help the public better to understand the present invention, can not limit protection scope of the present invention with this.

The asynchronous operation method flow that present embodiment provides is as shown in Figure 2:

At step S200, according to the models of priority that presets, for pending task is determined priority.This pending task can trigger in software running process, has triggered in the time of also can being the system call program.In embodiments of the present invention, described pending task is for needing the task of asynchronous execution.

At step S201, the precedence information of pending task is encapsulated in the described pending task, and the described pending task that has precedence information is sent to task-set.More specifically, task-set in the present embodiment and thread pool are that assembled package is good, are equivalent to a black box to external world, only need write asynchronous task inward and get final product.This asynchronous task need be carried out the encapsulation of precedence information according to the models of priority that presets, and generates the pending task that carries precedence information, is written in the task-set then.In the present embodiment, the input and output that the priority of asynchronous task, task definition, task are carried out fully can self-defined and expansion, has increased the extendability and the self-defining dirigibility of program asynchronous operation.

At step S202,, it is write in the task list that has corresponding priority in the described task-set according to the priority of pending task.More specifically, if the priority of certain pending task be " height ", then it is write that priority also is in the task list of " height " in the task-set.For pending task with equal priority, then in the task list of correspondence, arrange according to the submission time of pending task, the pending task that writes task list earlier formerly, in subsequent step, pending task formerly will be removed execution earlier.

At step S203,, take out pending task and operation successively according to the priority orders of task list in the described task-set.More specifically, thread pool takes out pending task and operation successively according to the priority order from high to low of task list in the task-set.For the pending task in the same task list, take out successively according to the submission time of pending task.

Continuous precedent, thread pool at first take out pending task and move from priority be the task list of " height "; After priority is finished for all pending task runs in the task list of " height ", from priority be " " task list in take out pending task and move, by that analogy, all task lists are vacant in task-set.The thread of thread pool sleep when task-set is vacant when writing task-set until remaining to be executed the task, is waking thread taking-up task execution from task-set task list from high to low up.

In the present embodiment, standard, concentrated processing are carried out in all asynchronous operations, make this asynchronous operation of program rapid multiplexing, greatly reduce in the prior art asynchronous operation and often deal with improperly and bring serious quality risk, have advantages such as efficient, practical and safety to software.

At step S204, thread pool is managed the active thread of this task.More specifically, in the present embodiment, with the good thread pool of initialization in advance, initialization, the resource having avoided needing in the prior art each asynchronous task to be carried out thread discharge and last operations such as thread cancellation, the active thread that the thread pool management is executed the task, the sleep of the thread of thread pool waited for that new task pushes when task-set was vacant, and (before being closing application program) do not carry out the cancellation of thread before process was released.

The asynchronous operation method that the embodiment of the invention provided is classified to asynchronous task according to priority, provides efficient, a convenient and safe relatively processing procedure to asynchronous task.Implement the asynchronous operation method that present embodiment provides, the input and output that the priority of asynchronous task, task definition, task are carried out fully can self-defined and expansion, has increased the extendability and the self-defining dirigibility of program asynchronous operation.This asynchronous operation management devices carries out standard, concentrated processing to all asynchronous operations, makes this asynchronous operation management devices of program rapid multiplexing; Greatly reduce in the prior art asynchronous operation simultaneously and often deal with improperly and bring serious quality risk, have advantages such as efficient, practical and safety to software.

Referring to Fig. 4, be the asynchronous operation management devices first example structure synoptic diagram provided by the invention, as shown in Figure 4, this asynchronous operation management devices comprises: task-set administration module 1 and mission thread administration module 2.

Task-set administration module 1 is used for the priority according to pending task, and described pending task is write in the task list that has corresponding priority in the task-set; Described pending task is for needing the task of asynchronous execution.

Mission thread administration module 2 is used for the priority orders according to task list in the described task-set, takes out pending task successively, and manages the active thread of this task.

The asynchronous operation management devices that the embodiment of the invention provided is classified to asynchronous operation according to priority, provides efficient, a convenient and safe relatively processing procedure to asynchronous operation.The asynchronous operation method that present embodiment provides is supported the asynchronous operation of conventional software, has advantages such as efficient, practical and safety.

Referring to Fig. 5, be the asynchronous operation management devices second example structure synoptic diagram provided by the invention, in the present embodiment, with the structure of this asynchronous operation management devices of more detailed description and the function of each module.As shown in Figure 5, this asynchronous operation management devices comprises: task-set administration module 1, mission thread administration module 2 and task priority administration module 3.

Task priority administration module 3 is used to be established as the models of priority that pending task is determined its priority; And according to described models of priority, for pending task is determined priority.More specifically, this task priority administration module 3 comprises:

Model management unit 31 is used to be established as the models of priority that pending task is determined its priority; Described models of priority is corresponding one by one to the priority of each task list in the priority classification of described pending task and the described task-set.In the present embodiment, with the priority of pending task high, medium and low three classes being arranged is that example describes.In actual applications, the priority of pending task can be with any ordered list layout, as numeral, might not with " height ", " in ", " low " classification.In the present embodiment, be that example describes (as shown in Figure 3) with high, medium and low three class priority, be intended to help the public better to understand the present invention.

Pending task need be divided under the prerequisite of high, medium and low three classes, models of priority is set up in model management unit 31, this model can be divided into high, medium and low three classes with pending task according to the type of pending task, and is corresponding with the priority of each task list in the task-set.

Operation encapsulation unit 32 is used for the precedence information of pending task is encapsulated in described pending task, and the described pending task that has precedence information is sent to described task-set administration module 1.More specifically, the asynchronous operation management devices in the present embodiment is that assembled package is good, is equivalent to a black box to external world, only need write asynchronous task inward and get final product.Operation encapsulation unit 32 need carry out the encapsulation of precedence information according to the models of priority that presets to asynchronous task, generates the pending task that carries precedence information, is written to then in the task-set administration module 1.The priority of pending task is judged in advance by external unit or is set.In the present embodiment, the input and output that the priority of asynchronous task, task definition, task are carried out fully can self-defined and expansion, has increased the extendability and the self-defining dirigibility of program asynchronous operation.

Task-set administration module 1 is used for the priority according to pending task, and described pending task is write in the task list that has corresponding priority in the task-set; Described pending task is for needing the task of asynchronous execution.More specifically this task-set administration module 1 comprises:

Classification of task unit 11 is used for the priority according to pending task, and described pending task is write in the task list that has corresponding priority in the task-set; For pending task, in the task list of correspondence, arrange according to the submission time of described pending task with equal priority.More specifically, if the priority of certain pending task be " height ", then classification of task unit 11 writes it that priority also is in the task list of " height " in task-set.For pending task with equal priority, 11 submission times according to pending task in classification of task unit are arranged in the task list of correspondence, the pending task that writes task list earlier formerly, pending task formerly will be carried on the back mission thread administration module 2 and will be removed execution earlier.

List management unit 12 is used at described classification of task unit 11 needs described pending task being write in the task-set, and when not having the task list of corresponding priority in the described task-set, creates the task list with corresponding priority in described task-set.Need to prove, task-set can be sky under original state, list management unit 12 is according to the task list of the priority establishment different priorities of the pending task that writes at every turn, and the pending task of different priorities writes in the task list of corresponding priority.Be to deposit pending task in each task list with equal priority.Like this, in the present embodiment, management is convenient in list management unit 12 adding and deleting task tabulation flexibly as required

Mission thread administration module 2 is used for the priority orders according to task list in the described task-set, takes out pending task successively, and manages the active thread of this task.More specifically, this mission thread administration module 2 comprises:

Task extraction unit 21 is used for the priority orders according to described task-set task list, takes out pending task successively; For pending task in the same task list, take out successively according to the submission time of described pending task.Continuous precedent, task extraction unit 21 at first take out pending task and move from priority be the task list of " height "; After priority is finished for all pending task runs in the task list of " height ", from priority be " " task list in take out pending task and move, by that analogy, all task lists are vacant in task-set.In the present embodiment, standard, concentrated processing are carried out in 21 pairs of all asynchronous operations of task extraction unit, make this asynchronous operation management devices of program rapid multiplexing; Greatly reduce in the prior art asynchronous operation simultaneously and often deal with improperly and bring serious quality risk, have advantages such as efficient, practical and safety to software.

Thread-management unit 22 is used to preset the task run thread, and management is by the active thread of the pending task of described task extraction unit taking-up; The described task run thread that presets comprises: initialization is preset, resource is released the branch configuration, resource discharges and presets.More specifically, in the present embodiment, thread-management unit 22 is with the good thread pool of initialization in advance, initialization, the resource having avoided needing in the prior art each asynchronous task to be carried out thread discharge and last operations such as thread cancellation, the active thread that the thread pool management is executed the task, the sleep of the thread of thread pool waited for that new task pushes when task-set was vacant, and (before being closing application program) do not carry out the cancellation of thread before process was released.

Preferably, this mission thread administration module 2 also comprises:

Task-set monitoring module 23, be used for monitoring the state of described task-set task list, when all task lists are all vacant, control described mission thread administration module 2 and enter sleep state (mainly being that task extraction unit 21 and thread-management unit 22 enter sleep state); There have new pending task to write in the task list of described task-set to be fashionable, and task-set monitoring module 23 wakes described mission thread administration module 2 up.

The asynchronous operation management devices that the embodiment of the invention provided is classified to asynchronous task according to priority, provides efficient, a convenient and safe relatively processing procedure to asynchronous task.Implement the asynchronous operation management devices that present embodiment provides, the input and output that the priority of asynchronous task, task definition, task are carried out fully can self-defined and expansion, has increased the extendability and the self-defining dirigibility of program asynchronous operation.This asynchronous operation management devices carries out standard, concentrated processing to all asynchronous operations, makes this asynchronous operation management devices of program rapid multiplexing; Greatly reduce in the prior art asynchronous operation simultaneously and often deal with improperly and bring serious quality risk, have advantages such as efficient, practical and safety to software.

One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.

Above disclosed is a kind of preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (10)

1. an asynchronous operation method is characterized in that, comprising:
According to the priority of pending task, described pending task is write in the task list that has corresponding priority in the task-set; Described pending task is for needing the task of asynchronous execution;
According to the priority orders of task list in the described task-set, take out pending task successively;
The pending task that operation is taken out from task list, and manage the active thread of this task.
2. asynchronous operation method as claimed in claim 1 is characterized in that, described priority according to pending task, write described pending task in the task list that has corresponding priority in the task-set before, also comprise:
Foundation is used to pending task to determine the models of priority of its priority, and described models of priority is corresponding one by one to the priority of each task list in the priority classification of described pending task and the described task-set.
3. asynchronous operation method as claimed in claim 2 is characterized in that, described priority according to pending task writes described pending task in the task list that has corresponding priority in the task-set, comprising:
According to the models of priority that presets, for pending task is determined priority;
The precedence information of pending task is encapsulated in the described pending task;
The described pending task that has precedence information is sent to task-set;
According to the priority of described pending task, it is write in the task list that has corresponding priority in the described task-set.
4. asynchronous operation method as claimed in claim 3, it is characterized in that, described priority according to described pending task, it is write in the task list that has corresponding priority in the described task-set, comprise:, in the task list of correspondence, arrange according to the submission time of pending task for pending task with equal priority;
Described priority orders according to task list in the described task-set is taken out pending task successively, comprising: for the pending task in the same task list, take out successively according to the submission time of pending task.
5. an asynchronous operation management devices is characterized in that, comprising:
The task-set administration module is used for the priority according to pending task, and described pending task is write in the task list that has corresponding priority in the task-set; Described pending task is for needing the task of asynchronous execution;
The mission thread administration module is used for the priority orders according to task list in the described task-set, takes out pending task successively, and manages the active thread of this task.
6. asynchronous operation management devices as claimed in claim 5 is characterized in that, described asynchronous operation management devices also comprises:
The task priority administration module is used to be established as the models of priority that pending task is determined its priority; And according to described models of priority, for pending task is determined priority.
7. asynchronous operation management devices as claimed in claim 6 is characterized in that, described task priority administration module comprises:
The model management unit is used to be established as the models of priority that pending task is determined its priority; Described models of priority is corresponding one by one to the priority of each task list in the priority classification of described pending task and the described task-set;
The operation encapsulation unit is used for the precedence information of pending task is encapsulated in described pending task, and the described pending task that has precedence information is sent to described task-set administration module.
8. asynchronous operation management devices as claimed in claim 7 is characterized in that, described task-set administration module comprises:
The classification of task unit is used for the priority according to pending task, and described pending task is write in the task list that has corresponding priority in the task-set; For pending task, in the task list of correspondence, arrange according to the submission time of described pending task with equal priority;
List management unit is used for described pending task to be write in the task-set in described classification of task unit, and when not having the task list of corresponding priority in the described task-set, creates the task list with corresponding priority in described task-set.
9. asynchronous operation management devices as claimed in claim 8 is characterized in that, described mission thread administration module comprises:
The task extraction unit is used for the priority orders according to described task-set task list, takes out pending task successively; For pending task in the same task list, take out successively according to the submission time of described pending task;
Thread-management unit is used to preset the task run thread, and management is by the active thread of the pending task of described task extraction unit taking-up; The described task run thread that presets comprises: initialization is preset, resource is released the branch configuration, resource discharges and presets.
10. asynchronous operation management devices as claimed in claim 9 is characterized in that, described mission thread administration module also comprises:
The task-set monitoring module is used for monitoring the state of described task-set task list, when all task lists are all vacant, control described mission thread administration module and enters sleep state; There have new pending task to write in the task list of described task-set to be fashionable, wakes described mission thread administration module up.
CN2011101956803A 2011-07-13 2011-07-13 Asynchronous operation method and asynchronous operation management device CN102253860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101956803A CN102253860A (en) 2011-07-13 2011-07-13 Asynchronous operation method and asynchronous operation management device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101956803A CN102253860A (en) 2011-07-13 2011-07-13 Asynchronous operation method and asynchronous operation management device
PCT/CN2011/084170 WO2013007087A1 (en) 2011-07-13 2011-12-17 Asynchronous operation method and asynchronous operation management device

Publications (1)

Publication Number Publication Date
CN102253860A true CN102253860A (en) 2011-11-23

Family

ID=44981140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101956803A CN102253860A (en) 2011-07-13 2011-07-13 Asynchronous operation method and asynchronous operation management device

Country Status (2)

Country Link
CN (1) CN102253860A (en)
WO (1) WO2013007087A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013007087A1 (en) * 2011-07-13 2013-01-17 深圳市万兴软件有限公司 Asynchronous operation method and asynchronous operation management device
WO2015014150A1 (en) * 2013-08-01 2015-02-05 Tencent Technology (Shenzhen) Company Limited Method,apparatus,and application platform for updating application object attribute
CN105027077A (en) * 2012-12-14 2015-11-04 微软技术许可有限责任公司 Matching opportunity to context
CN106506389A (en) * 2016-10-19 2017-03-15 广州华多网络科技有限公司 Network request asynchronous processing method and device
CN106648847A (en) * 2016-10-14 2017-05-10 郑州云海信息技术有限公司 Asynchronous task management method and device in cloud computing operation system
CN106802826A (en) * 2016-12-23 2017-06-06 中国银联股份有限公司 A kind of method for processing business and device based on thread pool
US10200318B2 (en) 2012-12-13 2019-02-05 Microsoft Technology Licensing, Llc Task completion in email using third party app
US10528385B2 (en) 2012-12-13 2020-01-07 Microsoft Technology Licensing, Llc Task completion through inter-application communication
US10839325B2 (en) 2016-11-06 2020-11-17 Microsoft Technology Licensing, Llc Efficiency enhancements in task management applications

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290668A (en) * 2008-06-16 2008-10-22 中国移动通信集团湖北有限公司 Time sharing operation dynamic dispatching method and device
CN101561768A (en) * 2008-04-18 2009-10-21 北京闻言科技有限公司 Universal multitask scheduling method
CN102063336A (en) * 2011-01-12 2011-05-18 国网电力科学研究院 Distributed computing multiple application function asynchronous concurrent scheduling method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940612A (en) * 1995-09-27 1999-08-17 International Business Machines Corporation System and method for queuing of tasks in a multiprocessing system
US7757238B2 (en) * 2004-06-29 2010-07-13 Intel Corporation Task switching with a task containing code region to adjust priority
US8307128B2 (en) * 2006-12-08 2012-11-06 International Business Machines Corporation System and method to improve sequential serial attached small computer system interface storage device performance
US8185899B2 (en) * 2007-03-07 2012-05-22 International Business Machines Corporation Prediction based priority scheduling
CN102253860A (en) * 2011-07-13 2011-11-23 深圳市万兴软件有限公司 Asynchronous operation method and asynchronous operation management device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561768A (en) * 2008-04-18 2009-10-21 北京闻言科技有限公司 Universal multitask scheduling method
CN101290668A (en) * 2008-06-16 2008-10-22 中国移动通信集团湖北有限公司 Time sharing operation dynamic dispatching method and device
CN102063336A (en) * 2011-01-12 2011-05-18 国网电力科学研究院 Distributed computing multiple application function asynchronous concurrent scheduling method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013007087A1 (en) * 2011-07-13 2013-01-17 深圳市万兴软件有限公司 Asynchronous operation method and asynchronous operation management device
US10528385B2 (en) 2012-12-13 2020-01-07 Microsoft Technology Licensing, Llc Task completion through inter-application communication
US10200318B2 (en) 2012-12-13 2019-02-05 Microsoft Technology Licensing, Llc Task completion in email using third party app
CN105027077A (en) * 2012-12-14 2015-11-04 微软技术许可有限责任公司 Matching opportunity to context
WO2015014150A1 (en) * 2013-08-01 2015-02-05 Tencent Technology (Shenzhen) Company Limited Method,apparatus,and application platform for updating application object attribute
US10204125B2 (en) 2013-08-01 2019-02-12 Tencent Technology (Shenzhen) Company Limited Method, apparatus, and application platform for updating application object attribute
CN106648847A (en) * 2016-10-14 2017-05-10 郑州云海信息技术有限公司 Asynchronous task management method and device in cloud computing operation system
CN106506389A (en) * 2016-10-19 2017-03-15 广州华多网络科技有限公司 Network request asynchronous processing method and device
US10839325B2 (en) 2016-11-06 2020-11-17 Microsoft Technology Licensing, Llc Efficiency enhancements in task management applications
CN106802826A (en) * 2016-12-23 2017-06-06 中国银联股份有限公司 A kind of method for processing business and device based on thread pool

Also Published As

Publication number Publication date
WO2013007087A1 (en) 2013-01-17

Similar Documents

Publication Publication Date Title
US10432464B2 (en) Creating new cloud resource instruction set architecture
JP2020507840A (en) Service processing method and apparatus
KR20200086381A (en) Blockchain consensus method and device
US10114349B2 (en) Multiple applications utilized in an industrial automation system displayed as a single application
CN103810020B (en) Virtual machine elastic telescopic method and device
CN1585925B (en) GUI application program development support device and method
EP2169547B1 (en) Compilation model for programmable logic controllers (PLC).
US9734056B2 (en) Cache structure and management method for use in implementing reconfigurable system configuration information storage
CN100487728C (en) Smart card of supporting high performance computing, large capacity storage and high-speed transmission
US8468514B2 (en) System and method for updating unified extensible firmware interface setting information
CN102594919B (en) Information technology (IT) resource supporting system
US10365626B2 (en) Extending the functionality of a programmable logic controller (PLC) with apps without changing the PLC programming
CN103558473B (en) Based on frequency converter field debugging system and the method thereof of human-computer interaction interface
CN103930874B (en) Changed using scheduled resource group and estimated by the workload to portable computing and save power
CN104238712A (en) Distributed power conveying
JPWO2003023602A1 (en) Data processing system and control method thereof
CN105279133A (en) VPX parallel DSP signal processing board card based on SoC online reconstruction
KR20130105890A (en) Minimizing resource latency between processor application states in a portable computing device by scheduling resource set transitions
EP3289443B1 (en) Central processing unit with dsp engine and enhanced context switch capabilities
US7685439B2 (en) Method for effecting the controlled shutdown of data processing units
US20200183662A1 (en) Method and apparatus for converting building block programming into program code
US8904216B2 (en) Massively multicore processor and operating system to manage strands in hardware
CN103488775A (en) Computing system and computing method for big data processing
CN106445528B (en) Method and device for rapidly configuring SETUP option of BIOS
CN103077079B (en) Virtual machine (vm) migration control method and device

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road, room 9 building on the north side of block A901 No. 006 TCL Industry Research Institute building A A Building 8 floor

Applicant after: Shenzhen Wondershare Information Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road Building A block 8 Building TCL

Applicant before: Shenzhen Wondershare Software Co., Ltd.

C53 Correction of patent for invention or patent application
COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN WONDERSHARE SOFTWARE CO., LTD. TO: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY CO., LTD.

RJ01 Rejection of invention patent application after publication

Application publication date: 20111123

C12 Rejection of a patent application after its publication