CN105700937A - Multi-thread task processing method and device - Google Patents

Multi-thread task processing method and device Download PDF

Info

Publication number
CN105700937A
CN105700937A CN201610005316.9A CN201610005316A CN105700937A CN 105700937 A CN105700937 A CN 105700937A CN 201610005316 A CN201610005316 A CN 201610005316A CN 105700937 A CN105700937 A CN 105700937A
Authority
CN
China
Prior art keywords
entity
module
task
management module
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610005316.9A
Other languages
Chinese (zh)
Inventor
黄帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610005316.9A priority Critical patent/CN105700937A/en
Publication of CN105700937A publication Critical patent/CN105700937A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/466Transaction processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2336Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
    • G06F16/2343Locking methods, e.g. distributed locking or locking implementation details

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a multi-thread task processing method and a multi-thread task processing device. The method comprises the following steps: a task manager receives business information, adds an entity of task information included in the business information to a task pool, calls a management module to process the entity in the task pool, and calls the management module to obtain a result that the management module processes the entity in the task pool; the management module calls an execution module to process the entity in the task pool, and calls a monitoring module to obtain the result that the execution module processes the entity in the task pool; the execution module obtains the entity from the task pool, calls a thread, a lock as well as a task processing function of the obtained entity, processes the obtained entity, and notifies the processed result to the monitoring module; and the monitoring module records a successful label or a failed label according to the processed result, and sends the successful label or the failed label to the management module. Therefore, the method and the device disclosed by the invention realize execution of the entity with multiple task information in a multi-thread parallel manner, the time for processing a single business is relatively short, and the efficiency of processing the business is improved.

Description

Multithreading task processing method and device
Technical field
The application relates to field of computer technology, is specifically related to computer task processing technology field, particularly relates to multithreading task processing method and device。
Background technology
Current task processing method, entity for the mission bit stream that the business information received from user includes, traditional single-threaded series winding is adopted to perform: the operation of single atomicity business (such as reimbursement business etc.) is in completely self-contained state, the success of whole atomicity operation flow or failure, with multiple tasks (such as, frozen capital pond task, task of deducting fees and reimbursement task dispatching) execution result closely related, namely, if a tasks carrying failure, then flow process (flow process of the such as reimbursement business) failure of whole atomicity business;If all tasks carrying successes, then the flow process success of atomicity business。
But, current task processing method, owing to adopting single-threaded series connection to perform the multiple tasks in single business, when after a Mission Success, performing another task, if there being a tasks carrying unsuccessfully will terminate the execution flow process of whole atomicity business, causing whole service fail, therefore the time processing single business is longer, processes the inefficient of business。
Summary of the invention
The purpose of the application is in that to propose the multithreading task processing method of a kind of improvement and device, solves the technical problem that background section above is mentioned。
First aspect, this application provides a kind of multithreading task processing method, described method includes: task manager receives business information, the entity of the mission bit stream described business information included is added in task pool, call management module to process the entity in described task pool, and call the management module result with the entity in the acquisition described task pool of process, wherein, described entity includes: lock mark, task processes function;Described management module calls execution module to process the entity in described task pool, calls monitoring module to obtain the result of the entity in task pool described in described execution resume module;Described execution module obtains entity from described task pool, the task of the entity calling thread, lock and acquisition processes function, the entity obtained is processed, the result of process notifies described monitoring module, wherein, described lock is determined according to the locking mark of the entity obtained;Described monitoring module is according to the result record pass flag of described process or fail flag, and described pass flag or fail flag are sent to described management module。
In certain embodiments, described entity also includes: number of retries;And the result record fail flag that described monitoring module is according to described process, and the fail flag of record is sent to described management module includes: described monitoring module is unsuccessfully in response to the result of described process, number of retries according to the entity obtained, notify that described execution module retries the entity processing described acquisition, when the number of times retrying process reach described number of retries but process result be still unsuccessfully time, record fail flag, and described fail flag is sent to described management module。
In certain embodiments, described task manager receives business information, the entity of the mission bit stream described business information included is added into task pool and includes: described task manager receives business information, the default process time is added in the entity of the mission bit stream that described business information includes, the entity adding the described default process time is added in task pool;And described management module calls execution module and includes to process the entity in described task pool: described management module is in response to the result not receiving described process within the described default process time, send command for stopping to described execution module to have added the entity of described default process time described in termination, and the described entity having added the described default process time is added in described task pool again。
In certain embodiments, described method also includes: described task manager meets default transaction conditions in response to the entity of described mission bit stream, starts the affairs of the entity of described mission bit stream;Described management module, in response to receiving described fail flag and the entity corresponding with described fail flag starts affairs in advance, calls described execution module with entity corresponding with described fail flag described in rollback。
In certain embodiments, described entity also includes: rollback function;And described method also includes: described execution module calls described rollback function with entity corresponding with described fail flag described in rollback。
In certain embodiments, described method also includes: described task manager determines distributed lock in response to receiving user's selection, and is added in distributed lock pond by described distributed lock;And described execution module calls lock and includes: what described execution module called the entity of described acquisition from described distributed lock pond locks the lock that mark is indicated。
In certain embodiments, described method also includes: described task manager receives to add and performs module instruction, adds new execution module to performing module pond according to the described execution module instruction that adds;And described management module calls execution module and includes to process the entity in described task pool: described management module calls execution module to process the entity in described task pool from described execution module pond。
In certain embodiments, described method also includes: described task manager receives to add monitors module instruction, adds new monitoring module to monitoring module pond according to the described monitoring module instruction that adds;Described management module is called monitoring module and is included to obtain the result of entity described in described execution resume module: described management module calls the result monitoring module to obtain the entity obtained described in described execution resume module from described monitoring module pond。
In certain embodiments, described method also includes: the result of described process is carried out following one or more process by described management module: be stored in data base, write daily record and notice Third party system。
Second aspect, this application provides a kind of multithreading Task Processing Unit, described device includes: task manager, for receiving business information, the entity of the mission bit stream described business information included is added in task pool, calls management module to process the entity in described task pool, and calls the management module result with the entity in the acquisition described task pool of process, wherein, described entity includes: lock mark, task processes function;Described management module, for calling execution module to process the entity in described task pool, calls monitoring module to obtain the result of the entity in task pool described in described execution resume module;Described execution module, for obtaining entity from described task pool, the task of the entity calling thread, lock and acquisition processes function, the entity obtained is processed, the result of process notifies described monitoring module, and wherein, described lock is determined according to the locking mark of the entity obtained;Described monitoring module, for the result record pass flag according to described process or fail flag, and is sent to described management module by described pass flag or fail flag。
In certain embodiments, the described entity in described task manager also includes: number of retries;And described monitoring module is further used for: the result in response to described process is unsuccessfully, number of retries according to the entity obtained, notify that described execution module retries the entity processing described acquisition, when the number of times retrying process reach described number of retries but process result be still unsuccessfully time, record fail flag, and described fail flag is sent to described management module。
In certain embodiments, described task manager is further used for: receives business information, is added in the entity of the mission bit stream that described business information includes by the default process time, is added in task pool by the entity adding the described default process time;And described management module is further used for: in response to the result not receiving described process within the described default process time, send command for stopping to described execution module to have added the entity of described default process time described in termination, and the described entity having added the described default process time is added in described task pool again。
In certain embodiments, described task manager is further used for: the entity in response to described mission bit stream meets default transaction conditions, starts the affairs of the entity of described mission bit stream;And described management module is further used for: in response to receiving described fail flag and the entity corresponding with described fail flag starts affairs in advance, call described execution module with entity corresponding with described fail flag described in rollback。
In certain embodiments, the described entity in described task manager also includes: rollback function;And described execution module is further used for: call described rollback function with entity corresponding with described fail flag described in rollback。
In certain embodiments, described task manager is further used for: determines distributed lock in response to receiving user's selection, and is added in distributed lock pond by described distributed lock;And described execution module is further used for: what described execution module called the entity of described acquisition from described distributed lock pond locks the lock that mark is indicated。
In certain embodiments, described task manager is further used for: receives and adds execution module instruction, adds new execution module to execution module pond according to the described execution module instruction that adds;And described management module is further used for: call execution module from described execution module pond to process the entity in described task pool。
In certain embodiments, described task manager is further used for: receives to add and monitors module instruction, adds new monitoring module to monitoring module pond according to the described monitoring module instruction that adds;And described management module is further used for: call the result monitoring module to obtain the entity obtained described in described execution resume module from described monitoring module pond。
In certain embodiments, described management module is further used for: the result of described process is carried out following one or more process: be stored in data base, write daily record and notice Third party system。
The multithreading task processing method of the application offer and device, business information is received by task manager, the entity of mission bit stream business information included is added in task pool, call management module to process the entity in task pool, and call the management module result with the entity in acquisition process task pool, call execution module to process the entity in task pool by management module afterwards, call the result monitoring module to obtain the entity performed in resume module task pool;From task pool, entity is obtained afterwards by execution module, the task of the entity calling thread, lock and acquisition processes function, the entity obtained is processed, the result notice processed is monitored module, finally by monitoring module according to the result record pass flag processed or fail flag, and pass flag or fail flag are sent to management module, it is achieved thereby that multi-threaded parallel performs the entity of multiple mission bit streams, the time processing single business is shorter, improves the efficiency of process business。
Further, according to section Example, monitor module in response to the entity failure processing mission bit stream, number of retries according to this entity, notice performs module and retries process, when the number of times retrying process reach number of retries but process result be still unsuccessfully time, record fail flag, and fail flag is sent to management module, retry thus rollback can be carried out after ensure that entity handles failure, improve the probability processing Mission Success, thus improve the successful probability of process business, and automatically terminate other unenforced tasks when retrying and reaching number of retries but still be failed, thus what ensure resource minimizes consumption。
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other features, purpose and advantage will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is an indicative flowchart of the multithreading task processing method according to the embodiment of the present application;
Fig. 3 is the schematic diagram of a concrete implementation scene of the multithreading task processing method according to the embodiment of the present application;
Fig. 4 is the indicative flowchart according to the method presetting process time-triggered protocol mission bit stream according to the embodiment of the present application;
Fig. 5 is an indicative flowchart of the method for the entity corresponding with fail flag according to transaction journal rollback according to the embodiment of the present application;
Fig. 6 is the indicative flowchart that another of the multithreading task processing method according to the embodiment of the present application realizes scene;
Fig. 7 is an exemplary block diagram of the multithreading Task Processing Unit according to the embodiment of the present application;
Fig. 8 is adapted for the structural representation of the computer system for the terminal unit or server realizing the embodiment of the present application。
Detailed description of the invention
Below in conjunction with drawings and Examples, the application is described in further detail。It is understood that specific embodiment described herein is used only for explaining related invention, but not the restriction to this invention。It also should be noted that, for the ease of describing, accompanying drawing illustrate only the part relevant to about invention。
It should be noted that when not conflicting, the embodiment in the application and the feature in embodiment can be mutually combined。Describe the application below with reference to the accompanying drawings and in conjunction with the embodiments in detail。
Fig. 1 illustrates the exemplary system architecture 100 of the embodiment of multithreading task processing method or the multithreading Task Processing Unit that can apply the application。
As it is shown in figure 1, system architecture 100 can include terminal unit 101,102,103, network 104 and server 105。Network 104 in order to provide the medium of communication link between terminal unit 101,102,103 and server 105。Network 104 can include various connection type, for instance wired, wireless communication link or fiber optic cables etc.。
User can use terminal unit 101,102,103 mutual with server 105 by network 104, to submit business information etc. to。Terminal unit 101,102,103 can be provided with the application of various telecommunication customer end, for instance pay class application, shopping class application, web browser applications, searching class application, JICQ, mailbox client, social platform software etc.。
Terminal unit 101,102,103 can be have display screen and support the various electronic equipments of man-machine interactive operation, include but not limited to smart mobile phone, panel computer, E-book reader, MP3 player (MovingPictureExpertsGroupAudioLayerIII, dynamic image expert's compression standard audio frequency aspect 3), MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert's compression standard audio frequency aspect 4) player, pocket computer on knee and desk computer etc.。
Server 105 can be to provide the server of various service, for instance the background server that the business information submitted on terminal unit 101,102,103 is processed。The data such as the business information received can be analyzed waiting and process by background server, and the result (such as consumption data) processed is fed back to terminal unit。
It should be noted that the multithreading task processing method that the embodiment of the present application provides generally is performed by server 105, correspondingly, multithreading Task Processing Unit is generally positioned in server 105。
It should be understood that the number of terminal unit in Fig. 1, network and server is merely schematic。According to realizing needs, it is possible to have any number of terminal unit, network and server。
With continued reference to Fig. 2, it is shown that an indicative flowchart according to the multithreading task processing method of the embodiment of the present application。Described multithreading task processing method 200, comprises the following steps:
Step 201, task manager receives business information, and the entity of mission bit stream business information included is added in task pool, calls management module to process the entity in task pool, and calls the management module result with the entity in acquisition process task pool。
In the present embodiment, multithreading task processing method runs on electronic equipment thereon (such as the server shown in Fig. 1), it can be utilized by wired connection mode or radio connection to submit to the terminal of business information to receive business information from user, wherein, business information can include the entity of multiple mission bit stream。Such as, reimbursement business information potentially include frozen capital pond mission bit stream, deduct fees mission bit stream and reimbursement mission bit stream etc.。
In above-mentioned electronic equipment, it is possible to running and have task manager, receive business information by task manager, the entity of mission bit stream business information included is added in task pool。
The entity of mission bit stream here, is generally of certain feature or attribute, thus can make a distinction with the entity of other mission bit stream in data handling。The entity of mission bit stream can include token token, for verifying the identity information of entity。Additionally, the entity of mission bit stream can also include but not limited to: lock mark and/or task processes function。Wherein, lock mark and may indicate that the lock that the entity of mission bit stream uses in processing procedure;It can be homophony function that task processes function, to call the entity of called function process mission bit stream。
Here task pool, the entity of all pending mission bit streams of buffer memory, is the container of task, it is possible to share task at cross-thread, and all read-writes for task pool are all thread-safes。
Task manager is after the entity of mission bit stream is added in task pool, it is possible to call management module to process the entity in task pool, recalls the management module result with the entity in acquisition process task pool afterwards。
In some optional implementations of the present embodiment, task manager can also carry out following one or more process: determines distributed lock in response to receiving user's selection, and is added into by distributed lock in distributed lock pond;Receive to add and perform module instruction, add new execution module to performing module pond according to adding execution module instruction;And receive interpolation monitoring module instruction, add new monitoring module extremely monitoring module pond etc. according to adding monitoring module instruction。
Step 202, management module calls execution module to process the entity in task pool, calls the result monitoring module to obtain the entity performed in resume module task pool。
In the present embodiment, management module and perform that module is equally possible runs in above-mentioned electronic equipment (such as the server shown in Fig. 1)。In response to the calling management module of task manager in step 201, management module can call execution module to process the entity in task pool, it is also possible to calls the result monitoring module to obtain the entity performed in resume module task pool。
In some optional implementations of the present embodiment, receive to add corresponding to above-mentioned task manager and perform module instruction, the new execution module of module instruction interpolation is performed to performing module pond according to adding, management module is when calling execution module to process the entity in task pool, it is possible to perform module to process the entity in task pool from performing to call module pond。
In some optional implementations of the present embodiment, receive to add corresponding to above-mentioned task manager and monitor module instruction, the new monitoring module of module instruction interpolation is monitored to monitoring module pond according to adding, management module is when calling monitoring module to obtain the result performing resume module entity, it is possible to call, from monitoring, the result monitoring module to obtain the entity performing resume module acquisition module pond。
Step 203, performs module and obtains entity from task pool, and the task of the entity calling thread, lock and acquisition processes function, and the entity obtained is processed, and the result notice processed is monitored module。
In the present embodiment, perform module from task pool, obtain the thread called after entity, be the minimum unit of program execution stream。The thread of one standard is by thread identity number, current instruction pointer, set of registers and storehouse composition。It addition, thread is an entity in process, it is the ultimate unit being independently scheduled and assigning, can share, with other thread belonging to a process together, whole resources that process has。Single program is run multiple thread simultaneously and completes different work, be called multithreading。Can concurrently perform between multiple threads。Due to the mutual restriction between thread, cause thread to be in operation and present discontinuity。Thread also has ready, obstruction and runs three kinds of basic status。Ready state refers to that thread possesses all conditions of operation, can run in logic, is waiting datatron;Running status refers to that thread occupies datatron and is currently running;Blocked state refers to that thread is waiting an event (such as certain semaphore), can not perform in logic。
In order to optimize the using method of thread in task processes, it is possible to pre-set thread pool, add task to queue, then after creating thread, automatically start these tasks。The thread of thread pool is all background thread。Thread pool can the thread of all execution tasks of buffer memory, and be responsible for termination and the management thread information of whole business。Each thread uses the storehouse size of acquiescence, runs with the priority of acquiescence, and is in multiple thread units。If certain thread is idle (as waited certain event) in Managed Code, then another worker thread of insertion is made all processors keep busy by thread pool。If the thread of all thread pools all remains busy, but comprise the work of hang-up in queue, then thread pool will create another worker thread over time, but the number of thread exceedes maximum never。The thread exceeding maximum can be queued up, but to wait until that other threads just start after completing。
Perform module from task pool, obtain the lock called after entity, it is possible to determine according to the locking of the entity obtained mark。In order to optimize the use of lock in task processes, the lock pond object with all distributed locks of buffer memory can be pre-set, performance element is after the locking mark according to the entity obtained determines lock, call in lock pond the object with the phase-locked corresponding lock determined task is locked, to improve the safety of task。What this distributed task scheduling performed adds lock technology (such as, distributed by distributed cache systems MemCache realization adds lock technology), can adopt for different tasks and different add lock technology, can ensure that the concordance of shared resource, and make technological development personnel self-defined to lock to realize, the maximized motility improving scheme and autgmentability, also meet the opening and closing principle of design。
The task of performing the entity that module obtains the acquisition called after entity from task pool processes function, it is possible to for homophony function, execution module can call called function to process the entity of the mission bit stream obtained by calling this homophony function。
Performing module and obtains entity from above-mentioned task pool, the task of the entity calling above-mentioned thread, lock and above-mentioned acquisition afterwards processes function, and the entity obtained is processed, the result notice monitoring module that can process afterwards。Notice monitors the mode of module can adopt advice method of the prior art, for instance, it is possible to the mode that notified by event or monitor module by audiomonitor notice。
In some optional implementations of the present embodiment, distributed lock is determined in response to receiving user's selection corresponding to above-mentioned task manager, and distributed lock is added in distributed lock pond, perform module when calling lock, it is possible to the locking of entity calling acquisition from distributed lock pond identifies indicated lock。
In this implementation, distributed lock is to control synchronization of access between distributed system to share a kind of mode of resource。In a distributed system, it is often necessary to coordinate the action of each system。If have shared one or one group of resource between different systems or the different main frames of same system, then when accessing these resources, generally requiring mutual exclusion preventing and interfering with each other ensureing concordance, in this case, just needing to use distributed lock。
Step 204, monitors module according to the result record pass flag processed or fail flag, and pass flag or fail flag is sent to management module。
In the present embodiment, monitor module after obtaining the result processed, if the result processed is successfully, then can record pass flag, and the pass flag of record is sent to management module;If the result processed is unsuccessfully, then records fail flag, and the fail flag of record is sent to management module。
In some optional implementations of the present embodiment, the entity of above-mentioned mission bit stream can also include number of retries, monitoring module can according to the result record fail flag processed, and when the fail flag of record is sent to management module, it is unsuccessfully in response to the result processed, number of retries according to the entity obtained, notice performs module and retries the entity processing acquisition, when the number of times retrying process reach number of retries but process result be still unsuccessfully time, record fail flag, and fail flag is sent to management module。
In some optional implementations of the present embodiment, management module can after receiving pass flag or fail flag, it is possible to the result processed is carried out following one or more process: is stored in data base, write daily record and notice Third party system etc.。
Refer to the schematic diagram that Fig. 3, Fig. 3 illustrate a concrete implementation scene of multithreading task processing method according to the embodiment of the present application。
As shown in Figure 3, first task manager 311 receives the business information that user 301 submits to, the entity of mission bit stream business information included is added into task pool 350, and call leader 321 and process the entity in task pool 350, now the management module in above-described embodiment exists with the form of leader 321;Leader 321 calls the executor 331 in executor pond 330 to process the entity in task pool afterwards, call observer 341 and process the result of the entity in task pool 350 to obtain executor 331, now the execution module in above-described embodiment exists with the form of executor 331, monitors module and exists with the form of observer 341;Executor 331 obtains the entity of task from task pool 350 afterwards, the task of the entity calling the lock in the thread in thread pool 360, distributed lock pond 370 and acquisition processes function, the entity obtained is processed, and from observer pond 340, call observer 341, the result of process is notified observer 341;The result of process is fed back to leader 321 by observer 341 afterwards;Last task manager 311 calls the result that leader 321 acquisition processes。In this course, task manager 311 can also carry out with the next item down or multithread operation: can select in response to receiving user and determine distributed lock, and is added into by distributed lock in distributed lock pond 370;Can receiving the instruction adding executor, new executor 331 to executor pond 330 is added in the instruction according to adding executor;And the instruction adding observer can be received, new observer 341 to observer pond 340 is added in the instruction according to adding observer。
The multithreading task processing method that the above embodiments of the present application provide, the entity of multiple mission bit streams is performed by multiple thread parallels, even if the mission bit stream that business information includes is more, without because of the too much situation of step or each Step Time is long and the growth that causes the execution cycle of whole business to become times several levels, the time processing single business is shorter, thus improve the efficiency of process business。
The indicative flowchart according to the method presetting process time-triggered protocol mission bit stream according to the embodiment of the present application is illustrated with further reference to Fig. 4, Fig. 4。
On the basis of the embodiment described in above-mentioned Fig. 2, as shown in Figure 4, the method 400 according to default process time-triggered protocol mission bit stream may include that
Step 401: task manager receives business information, is added in the entity of the mission bit stream that business information includes the default process time, and is added in task pool by the entity adding the default process time。
In the present embodiment, step 401 can be that in step 201, task manager receives business information, and the entity of the mission bit stream that can include in business information is added into an optional implementation in task pool。
Wherein, the default process time of mission bit stream may come from the setting processing the time to each task and/or whole business that task manager receives。If this setting be only to whole business process the time setting, then can by task manager according to preset process the time allocation rule setting each task the process time。
Step 402: management module is in response to the result not receiving process within the default process time, send command for stopping and added the entity of default process time to execution module with termination, and the entity adding the default process time is added in task pool again。
In the present embodiment, step 402 can be that in step 202, management module calls execution module to process an optional implementation of the entity in task pool。
Wherein, in response to above-mentioned task manager reception is the setting processing the time to each task, so management module can exceed process time of setting in response to the time processing individual task, will this task of interrupt processing automatically, and do not affect the execution to other task of other threads。
In response to above-mentioned task manager reception is the setting processing the time to whole business, so task manager can set the process time of each task according to the default allocation rule processing the time, management module can exceed process time of setting in response to the time processing individual task, this task of automatic interrupt processing, and do not affect the execution to other task of other threads;Management module may also respond to the time processing whole business beyond the process time set, and stops still off-duty task, interrupts being currently running of task simultaneously。
In response to above-mentioned task manager reception is the process time that each task and whole business are set respectively, so management module exceedes the process time of setting in response to the time processing individual task, will this task of interrupt processing automatically, and do not affect the execution to other task of other threads;Management module may also respond to the time processing whole business beyond the process time set, and stops still off-duty task, interrupts being currently running of task simultaneously。
Figure 4, it is seen that compared with the embodiment that Fig. 2 is corresponding, the multithreading task processing method in the present embodiment highlights the step of the default process time-triggered protocol mission bit stream according to mission bit stream。Thus, the scheme that the present embodiment describes can pass through mission bit stream is processed the setting of time, the process time of individual task and whole business is controlled, thus well ensureing the ageing of whole business。
An indicative flowchart of the method for the entity corresponding with fail flag according to transaction journal rollback according to the embodiment of the present application is illustrated with further reference to Fig. 5, Fig. 5。
On the basis of the embodiment described in above-mentioned Fig. 2 or Fig. 4, as it is shown in figure 5, the method 500 according to the transaction journal rollback entity corresponding with fail flag may include that
Step 501: task manager may also respond to the entity of mission bit stream and meets default transaction conditions, starts the affairs of the entity of mission bit stream。
In the present embodiment, the transaction conditions preset is the required condition met of the entity needing to start affairs set in advance, and when the entity of mission bit stream meets default transaction conditions, task manager starts the affairs of the entity of this mission bit stream。Such as, the transaction conditions preset is when the entity of mission bit stream is for the task of deducting fees or reimbursement task, starts the affairs of the entity of mission bit stream。Affairs are to access and be likely to a program execution unit of various data item in more new database。Affairs generally by Advanced Database manipulation language or programming language (such as SQL, C++ or Java) caused by the execution of user program write, and start (begintransaction) by shape such as affairs and affairs terminate (endtransaction) statement (or function call) and define。Affairs are started (begintransaction) by affairs and affairs terminate all operations of execution between (endtransaction) and form。Such as: in relational database, affairs can be a SQL statement, one group of SQL statement or whole program。The execution process of affairs generates transaction journal。
Affairs have 4 attributes: atomicity, concordance, isolation and persistency, are recover the ultimate unit with con current control。Wherein, atomicity refers to that affairs are indivisible work units, all operations that affairs include or all do, or does not do;Concordance refers to that affairs must be make data base change to another coherency state from a coherency state。Concordance and atomicity are closely-related;Isolation refers to that other concurrent affairs are isolate by the data of i.e. operation affairs within and use, can not interfere with each other between each affairs concurrently performed;Persistency, also referred to as permanent, refers to affairs once submit to, and the change of data in data base should be just permanent by it。It should not had any impact by other operations ensuing or fault。
Task manager meets default transaction conditions in response to the entity of mission bit stream, the affairs of the entity starting mission bit stream may include that task manager meets default transaction conditions in response to the entity of mission bit stream, affairs start, and the result in response to the entity processing this mission bit stream obtained from management module is that successfully affairs terminate。
Step 502: management module, in response to receiving fail flag and the entity corresponding with fail flag starts affairs in advance, is called and performed module with the rollback entity corresponding with fail flag。
In the present embodiment, management module is in response to receiving fail flag, and the entity corresponding with fail flag starts affairs in advance, owing to the affairs of the entity corresponding with fail flag fail to submit to, therefore management module can call execution module, by performing module according to the transaction journal rollback entity corresponding with fail flag。
In some optional implementations of the present embodiment, the entity of above-mentioned mission bit stream can also include rollback function;Management module call perform module with entity that rollback fail flag is corresponding time, it is possible to calls rollback function is with the rollback entity corresponding with fail flag。
In this implementation, rollback function is homophony function, and when the entity handles failure of mission bit stream, management module can call called function, with the entity corresponding with fail flag according to transaction journal rollback。
From figure 5 it can be seen that compared with the embodiment that Fig. 2 is corresponding, the multithreading task processing method in the present embodiment highlights the step of the transaction rollback of the entity according to the mission bit stream entity corresponding with fail flag。Thus, the scheme that the present embodiment describes can be passed through the entity of the mission bit stream opening affairs in advance to failure and carry out rollback, and lifting processes the success rate of mission bit stream, thus improving the success rate of whole business, it is ensured that the atomicity of whole Business Stream。
Illustrate that another of multithreading task processing method according to the embodiment of the present application realizes the indicative flowchart of scene with continued reference to Fig. 6, Fig. 6。
As shown in Figure 6, on the basis of the embodiment described in above-mentioned Fig. 3, Fig. 4 and Fig. 5, another flow chart 600 realizing scene of multithreading task processing method may include that
In step 601: task manager receives business information, comprises the entity of mission bit stream in business information。
In step 602: task manager sets and performs parameter, is added in task pool by the entity setting the mission bit stream performing parameter。
In step 603: the entity in response to described mission bit stream meets default transaction conditions, opens the affairs of the entity of mission bit stream, namely affairs start。
In step 604: task manager calls leader to process the entity in task pool, leader calls executor and processes the entity setting the mission bit stream performing parameter, and the result of entity is notified observer by executor。
In step 605: task manager, in response to the entity success processing the mission bit stream starting affairs in advance, is submitted affairs to, namely affairs are terminated。
In step 606: leader calls observer's result with the entity in acquisition process task pool。
In step 607: leader judges whether to need rollback according to the result obtained, if result is failure and entity opens affairs in advance, then perform step 608, as result be successfully or result be unsuccessfully but entity does not open affairs in advance then terminate this task。
In step 608: leader calls the entity of the failed mission bit stream of executor's rollback。
It should be noted that above-mentioned step 603,605 and 608 be optional step, namely only after step 603 affairs start, just can there is affairs end step 605 and rollback step 608。
The multithreading task processing method that above-described embodiment of the application provides, the transaction journal opened by the entity in task pool records the execution state of each entity, if leader receive the result of entity processing mission bit stream be unsuccessfully time, call executor's entity according to the failed mission bit stream of transaction journal rollback, thus ensureing to process the success rate of the entity of mission bit stream。
With further reference to Fig. 7, as the realization to method shown in above-mentioned each figure, this application provides an embodiment of a kind of multithreading Task Processing Unit, this device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and this device specifically can apply in various electronic equipment。
As it is shown in fig. 7, the multithreading Task Processing Unit 700 described in the present embodiment includes: task manager 710, manage module 720, perform module 730 and monitor module 740。
Task manager 710, configuration is used for receiving business information, the entity of the mission bit stream that can include in business information is added in task pool, call management module to process the entity in task pool, and call the management module result with the entity in acquisition process task pool, wherein, entity may include that locking mark, task process function。
In the present embodiment, the entity of mission bit stream here, it is generally of certain feature or attribute, thus can make a distinction with the entity of other mission bit stream in data handling。The entity of mission bit stream can include token token, for verifying the identity information of entity。Additionally, the entity of mission bit stream can also include but not limited to: lock mark and/or task processes function。Wherein, lock mark and may indicate that the lock that the entity of mission bit stream uses in processing procedure;It can be homophony function that task processes function, to call the entity of called function process mission bit stream。
Management module 720, configuration, for calling execution module to process the entity in task pool, calls the result monitoring module to obtain the entity performed in resume module task pool。
In the present embodiment, in response to above-mentioned task manager calling management module, management module can call execution module to process the entity in task pool, it is also possible to calls the result monitoring module to obtain the entity performed in resume module task pool。
Performing module 730, configuration for obtaining entity from task pool, and the task of the entity calling thread, lock and acquisition processes function, the entity obtained is processed, the result notice of the result treatment processed is monitored module, wherein, locks the mark of the locking according to the entity obtained and determine。
In the present embodiment, perform module from task pool, obtain the thread called after entity, be the minimum unit of program execution stream;Perform module from task pool, obtain the lock called after entity, it is possible to determine according to the locking of the entity obtained mark;The task of performing the entity that module obtains the acquisition called after entity from task pool processes function, it is possible to for homophony function, execution module can call called function to process the entity of the mission bit stream obtained by calling this homophony function。
Monitoring module 740, configuration is for the result record pass flag according to process or fail flag, and pass flag or fail flag are sent to management module。
In the present embodiment, monitor module after obtaining the result processed, if the result processed is successfully, then can record pass flag, and the pass flag of record is sent to management module;If the result processed is unsuccessfully, then records fail flag, and the fail flag of record is sent to management module。
In some optional implementations of above-described embodiment, the entity in task manager can also include: number of retries;And monitoring module configures further and is used for: the result in response to process is unsuccessfully, number of retries according to the entity obtained, notice performs module and retries the entity processing acquisition, when the number of times retrying process reach number of retries but process result be still unsuccessfully time, record fail flag, and fail flag is sent to management module。
In some optional implementations of above-described embodiment, task manager configures further and is used for: receive business information, the default process time is added in the entity of the mission bit stream that business information includes, the entity adding the default process time is added in task pool;And management module configures further and is used for: in response to the result not receiving process within the default process time, send command for stopping to performing module to terminate described process, and the described mission bit stream corresponding with process is added in task pool again。
In some optional implementations of above-described embodiment, task manager configures further and is used for: the entity in response to mission bit stream meets default transaction conditions, starts the affairs of the entity of mission bit stream;And management module configures further and is used for: in response to receiving fail flag and the entity corresponding with fail flag starts affairs in advance, call and perform module with the rollback entity corresponding with fail flag。
In some optional implementations of above-described embodiment, the entity in task manager can also include: rollback function;And perform module and configure further and be used for: calls rollback function is with the rollback entity corresponding with fail flag。
In some optional implementations of above-described embodiment, task manager configures further and is used for: determines distributed lock in response to receiving user's selection, and is added into by distributed lock in distributed lock pond;And execution module configures further and is used for: perform the lock indicated by locking mark that module calls the entity of acquisition from distributed lock pond。
In this implementation, distributed lock is to control synchronization of access between distributed system to share a kind of mode of resource。In a distributed system, it is often necessary to coordinate the action of each system。If have shared one or one group of resource between different systems or the different main frames of same system, then when accessing these resources, generally requiring mutual exclusion preventing and interfering with each other ensureing concordance, in this case, just needing to use distributed lock。
In some optional implementations of above-described embodiment, task manager configures further and is used for: receives and adds execution module instruction, adds new execution module to execution module pond according to adding execution module instruction;And management module configures further and is used for: perform module to process the entity in task pool from performing module pond is called。
In some optional implementations of above-described embodiment, task manager configures further and is used for: receives to add and monitors module instruction, adds new monitoring module to monitoring module pond according to adding monitoring module instruction;And management module configures further and is used for: monitor module to obtain the result performing the entity that resume module obtains from monitoring module pond is called。
In some optional implementations of above-described embodiment, management module configures further and is used for: the result processed is carried out following one or more process: be stored in data base, write daily record and notice Third party system。
It will be understood by those skilled in the art that above-mentioned multithreading Task Processing Unit 700 also includes some other known features, for instance processor, memorizer etc., embodiment of the disclosure in order to unnecessarily fuzzy, these known structures are not shown in the figure 7。
Should be appreciated that all modules recorded in device 700 are corresponding with reference to each step in Fig. 2 method described。Thus, the operation and the feature that describe above with respect to multithreading task processing method are equally applicable to device 700 and the module wherein comprised, and do not repeat them here。Corresponding module in device 700 can cooperate to realize the scheme of the embodiment of the present application with the module in terminal unit and/or server。
Below with reference to Fig. 8, it illustrates the structural representation of the computer system 800 being suitable to terminal unit or server for realizing the embodiment of the present application。
As shown in Figure 8, computer system 800 includes CPU (CPU) 801, its can according to the program being stored in read only memory (ROM) 802 or from storage part 808 be loaded into the program random access storage device (RAM) 803 and perform various suitable action and process。In RAM803, also storage has system 800 to operate required various programs and data。CPU801, ROM802 and RAM803 are connected with each other by bus 804。Input/output (I/O) interface 805 is also connected to bus 804。
It is connected to I/O interface 805: include the importation 806 of keyboard, mouse etc. with lower component;Output part 807 including such as cathode ray tube (CRT), liquid crystal display (LCD) etc. and speaker etc.;Storage part 808 including hard disk etc.;And include the communications portion 809 of the NIC of such as LAN card, modem etc.。Communications portion 809 performs communication process via the network of such as the Internet。Driver 810 is connected to I/O interface 805 also according to needs。Detachable media 811, such as disk, CD, magneto-optic disk, semiconductor memory etc., be arranged in driver 810 as required, in order to the computer program read from it is mounted into storage part 808 as required。
Especially, according to embodiment of the disclosure, the process described above with reference to flow chart may be implemented as computer software programs。Such as, embodiment of the disclosure and include a kind of computer program, it includes the computer program being tangibly embodied on machine readable media, and described computer program comprises the program code for performing the method shown in flow chart。In such embodiments, this computer program can pass through communications portion 809 and be downloaded and installed from network, and/or is mounted from detachable media 811。
Flow chart in accompanying drawing and block diagram, it is illustrated that according to the system of the various embodiment of the application, the architectural framework in the cards of method and computer program product, function and operation。In this, flow chart or each square frame in block diagram can represent a part for a module, program segment or code, and a part for described module, program segment or code comprises the executable instruction of one or more logic function for realizing regulation。It should also be noted that at some as in the realization replaced, the function marked in square frame can also to be different from the order generation marked in accompanying drawing。Such as, two square frames succeedingly represented can essentially perform substantially in parallel, and they can also perform sometimes in the opposite order, and this determines according to involved function。It will also be noted that, the combination of the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart, can realize by the special hardware based system of the function or operation that perform regulation, or can realize with the combination of specialized hardware Yu computer instruction。
It is described in module involved in the embodiment of the present application to be realized by the mode of software, it is also possible to realized by the mode of hardware。Described module can also be arranged within a processor, for instance, it is possible to it is described as: a kind of processor includes task manager, manages module, performs module and monitor module。Wherein, the title of these modules is not intended that the restriction to this module itself under certain conditions, such as, management module is also described as " calling execution module to process the entity in task pool, call the module of the result monitoring module to obtain the entity performed in resume module task pool "。
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, this nonvolatile computer storage media can be the nonvolatile computer storage media comprised in device described in above-described embodiment;Can also be individualism, be unkitted the nonvolatile computer storage media allocating in terminal。Above-mentioned nonvolatile computer storage media storage has one or more program, when one or multiple program are performed by an equipment, make described equipment: task manager receives business information, the entity of the mission bit stream that can include in business information is added in task pool, call management module to process the entity in task pool, and call the management module result with the entity in acquisition process task pool, wherein, entity may include that locking mark, task process function;Management module calls execution module to process the entity in task pool, calls the result monitoring module to obtain the entity performed in resume module task pool;Performing module and obtain entity from task pool, the task of the entity calling thread, lock and acquisition processes function, and the entity obtained is processed, and the result notice of the result treatment processed is monitored module, wherein, locks the mark of the locking according to the entity obtained and determines;Monitor module according to the result record pass flag processed or fail flag, and pass flag or fail flag are sent to management module。
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle。Skilled artisan would appreciate that, invention scope involved in the application, it is not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, when also should be encompassed in without departing from described inventive concept simultaneously, other technical scheme being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed。Such as features described above and (but not limited to) disclosed herein have the technical characteristic of similar functions and replace mutually and the technical scheme that formed。

Claims (18)

1. a multithreading task processing method, it is characterised in that described method includes:
Task manager receives business information, the entity of the mission bit stream described business information included is added in task pool, call management module to process the entity in described task pool, and call the management module result with the entity in the acquisition described task pool of process, wherein, described entity includes: lock mark, task processes function;
Described management module calls execution module to process the entity in described task pool, calls monitoring module to obtain the result of the entity in task pool described in described execution resume module;
Described execution module obtains entity from described task pool, the task of the entity calling thread, lock and acquisition processes function, the entity obtained is processed, the result of process notifies described monitoring module, wherein, described lock is determined according to the locking mark of the entity obtained;
Described monitoring module is according to the result record pass flag of described process or fail flag, and described pass flag or fail flag are sent to described management module。
2. method according to claim 1, it is characterised in that described entity also includes: number of retries;And
The described monitoring module result record fail flag according to described process, and the fail flag of record is sent to described management module includes:
Described monitoring module is unsuccessfully in response to the result of described process, number of retries according to the entity obtained, notify that described execution module retries the entity processing described acquisition, when the number of times retrying process reach described number of retries but process result be still unsuccessfully time, record fail flag, and described fail flag is sent to described management module。
3. the method according to claim 1 or 2 any one, it is characterized in that, described task manager receives business information, the entity of the mission bit stream described business information included is added into task pool and includes: described task manager receives business information, the default process time is added in the entity of the mission bit stream that described business information includes, the entity adding the described default process time is added in task pool;And
Described management module is called execution module and is included to process the entity in described task pool: described management module is in response to the result not receiving described process within the described default process time, send command for stopping to described execution module to have added the entity of described default process time described in termination, and the described entity having added the described default process time is added in described task pool again。
4. method according to claim 3, it is characterised in that described method also includes:
Described task manager meets default transaction conditions in response to the entity of described mission bit stream, starts the affairs of the entity of described mission bit stream;
Described management module, in response to receiving described fail flag and the entity corresponding with described fail flag starts affairs in advance, calls described execution module with entity corresponding with described fail flag described in rollback。
5. method according to claim 4, it is characterised in that described entity also includes: rollback function;And
Described method also includes: described execution module calls described rollback function with entity corresponding with described fail flag described in rollback。
6. method according to claim 5, it is characterised in that described method also includes:
Described task manager determines distributed lock in response to receiving user's selection, and is added in distributed lock pond by described distributed lock;And
Described execution module is called lock and is included: described execution module is called locking of the entity of described acquisition from described distributed lock pond and identified indicated lock。
7. method according to claim 6, it is characterised in that described method also includes: described task manager receives to add and performs module instruction, adds new execution module to performing module pond according to the described execution module instruction that adds;And
Described management module is called execution module and is included to process the entity in described task pool: described management module calls execution module to process the entity in described task pool from described execution module pond。
8. method according to claim 7, it is characterised in that described method also includes: described task manager receives to add monitors module instruction, adds new monitoring module to monitoring module pond according to the described monitoring module instruction that adds;
Described management module is called monitoring module and is included to obtain the result of entity described in described execution resume module: described management module calls the result monitoring module to obtain the entity obtained described in described execution resume module from described monitoring module pond。
9. method according to claim 8, it is characterised in that described method also includes:
The result of described process is carried out following one or more process by described management module: be stored in data base, write daily record and notice Third party system。
10. a multithreading Task Processing Unit, it is characterised in that described device includes:
Task manager, for receiving business information, the entity of the mission bit stream described business information included is added in task pool, call management module to process the entity in described task pool, and call the management module result with the entity in the acquisition described task pool of process, wherein, described entity includes: lock mark, task processes function;
Described management module, for calling execution module to process the entity in described task pool, calls monitoring module to obtain the result of the entity in task pool described in described execution resume module;
Described execution module, for obtaining entity from described task pool, the task of the entity calling thread, lock and acquisition processes function, the entity obtained is processed, the result of process notifies described monitoring module, and wherein, described lock is determined according to the locking mark of the entity obtained;
Described monitoring module, for the result record pass flag according to described process or fail flag, and is sent to described management module by described pass flag or fail flag。
11. device according to claim 10, it is characterised in that the described entity in described task manager also includes: number of retries;And
Described monitoring module is further used for:
Result in response to described process is unsuccessfully, number of retries according to the entity obtained, notify that described execution module retries the entity processing described acquisition, when the number of times retrying process reach described number of retries but process result be still unsuccessfully time, record fail flag, and described fail flag is sent to described management module。
12. according to the device described in claim 10 or 11 any one, it is characterised in that described task manager is further used for:
Receive business information, the default process time is added in the entity of the mission bit stream that described business information includes, the entity adding the described default process time is added in task pool;And
Described management module is further used for:
In response to the result not receiving described process within the described default process time, send command for stopping to described execution module to have added the entity of described default process time described in termination, and the described entity having added the described default process time is added in described task pool again。
13. device according to claim 12, it is characterised in that described task manager is further used for:
Entity in response to described mission bit stream meets default transaction conditions, starts the affairs of the entity of described mission bit stream;And
Described management module is further used for:
In response to receiving described fail flag and the entity corresponding with described fail flag starts affairs in advance, call described execution module with entity corresponding with described fail flag described in rollback。
14. device according to claim 13, it is characterised in that the described entity in described task manager also includes: rollback function;And
Described execution module is further used for:
Call described rollback function with entity corresponding with described fail flag described in rollback。
15. device according to claim 14, it is characterised in that described task manager is further used for:
Determine distributed lock in response to receiving user's selection, and described distributed lock is added in distributed lock pond;And
Described execution module is further used for:
Described execution module is called locking of the entity of described acquisition from described distributed lock pond and is identified indicated lock。
16. device according to claim 15, it is characterised in that described task manager is further used for:
Receive to add and perform module instruction, add new execution module to performing module pond according to the described execution module instruction that adds;And
Described management module is further used for: call execution module from described execution module pond to process the entity in described task pool。
17. device according to claim 16, it is characterised in that described task manager is further used for:
Receive to add and monitor module instruction, add new monitoring module to monitoring module pond according to the described monitoring module instruction that adds;And
Described management module is further used for:
The result monitoring module to obtain the entity obtained described in described execution resume module is called from described monitoring module pond。
18. device according to claim 17, it is characterised in that described management module is further used for:
The result of described process is carried out following one or more process: be stored in data base, write daily record and notice Third party system。
CN201610005316.9A 2016-01-04 2016-01-04 Multi-thread task processing method and device Pending CN105700937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610005316.9A CN105700937A (en) 2016-01-04 2016-01-04 Multi-thread task processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610005316.9A CN105700937A (en) 2016-01-04 2016-01-04 Multi-thread task processing method and device

Publications (1)

Publication Number Publication Date
CN105700937A true CN105700937A (en) 2016-06-22

Family

ID=56226081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610005316.9A Pending CN105700937A (en) 2016-01-04 2016-01-04 Multi-thread task processing method and device

Country Status (1)

Country Link
CN (1) CN105700937A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453592A (en) * 2016-11-02 2017-02-22 华为技术有限公司 Asynchronous call processing method and apparatus, and distributed system
CN107077390A (en) * 2016-07-29 2017-08-18 华为技术有限公司 A kind of task processing method and network interface card
CN107147637A (en) * 2017-05-05 2017-09-08 腾讯科技(深圳)有限公司 A kind of tasks carrying request processing method, device and computer-readable storage medium
CN107333282A (en) * 2017-06-05 2017-11-07 惠州Tcl移动通信有限公司 A kind of 5G terminal general-purpose platform optimization methods and system based on GPP
CN107368359A (en) * 2017-05-31 2017-11-21 杭州大搜车汽车服务有限公司 A kind of asynchronous task performs method and its storage medium, device
CN107589959A (en) * 2016-07-08 2018-01-16 湖南易分销电子商务有限公司 One kind is used for the multi-thread process automation task treatment technology of mall system
CN107621978A (en) * 2017-09-29 2018-01-23 郑州云海信息技术有限公司 A kind of High Availabitity task processing Controlling model under parallel computation environment
CN107818017A (en) * 2016-09-14 2018-03-20 北京京东尚科信息技术有限公司 Multithread calculating system and its data processing method
CN107861799A (en) * 2016-12-28 2018-03-30 平安科技(深圳)有限公司 task processing method and device based on multi-thread environment
CN107908494A (en) * 2017-11-10 2018-04-13 泰康保险集团股份有限公司 Processing method, device, electronic equipment and the storage medium of anomalous event
CN108182637A (en) * 2017-12-28 2018-06-19 泰康保险集团股份有限公司 A kind of generation method, device, medium and the electronic equipment of green logical service volume
CN108228880A (en) * 2018-01-24 2018-06-29 上海达梦数据库有限公司 Data base management system calls method, apparatus, equipment and the medium of external function
CN108243229A (en) * 2016-12-26 2018-07-03 北京国双科技有限公司 Request processing method and device
CN108427599A (en) * 2017-09-30 2018-08-21 平安科技(深圳)有限公司 Method, apparatus and storage medium is uniformly processed in asynchronous task
CN108733459A (en) * 2017-04-13 2018-11-02 腾讯科技(深圳)有限公司 A kind of method of distributed timing, server and system
CN108804112A (en) * 2018-05-22 2018-11-13 上海分布信息科技有限公司 A kind of block chain falls account processing method and system
CN108804206A (en) * 2017-04-26 2018-11-13 武汉斗鱼网络科技有限公司 The processing method and system of synchronous task
CN109933459A (en) * 2017-12-18 2019-06-25 北京京东尚科信息技术有限公司 A kind of execution method and apparatus of multitask
CN110633133A (en) * 2018-06-21 2019-12-31 中兴通讯股份有限公司 Task processing method and device and computer readable storage medium
CN110716943A (en) * 2019-09-06 2020-01-21 中国平安财产保险股份有限公司 Missing data additional recording method and device, computer equipment and storage medium
CN111143065A (en) * 2019-12-25 2020-05-12 杭州安恒信息技术股份有限公司 Data processing method, device, equipment and medium
CN112799684A (en) * 2019-11-14 2021-05-14 中盈优创资讯科技有限公司 Service packet obtaining and loading method and device
CN113177056A (en) * 2021-06-29 2021-07-27 企查查科技有限公司 Method, device and storage medium for checking consistency of service data of multiple databases
CN114356533A (en) * 2022-03-15 2022-04-15 北京仁科互动网络技术有限公司 Micro-service non-perception publishing system and method, electronic equipment and storage medium
CN115967641A (en) * 2023-03-16 2023-04-14 浙江正泰仪器仪表有限责任公司 Method and device for batch equipment parameter operation, computer equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290588A (en) * 2008-03-07 2008-10-22 重庆邮电大学 Micro-embedded real time task scheduling device and scheduling method
CN101425024A (en) * 2008-10-24 2009-05-06 中国移动通信集团山东有限公司 Multitasking method and device
CN101957780A (en) * 2010-08-17 2011-01-26 中国电子科技集团公司第二十八研究所 Resource state information-based grid task scheduling processor and grid task scheduling processing method
CN104462370A (en) * 2014-12-09 2015-03-25 北京百度网讯科技有限公司 Distributed task scheduling system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290588A (en) * 2008-03-07 2008-10-22 重庆邮电大学 Micro-embedded real time task scheduling device and scheduling method
CN101425024A (en) * 2008-10-24 2009-05-06 中国移动通信集团山东有限公司 Multitasking method and device
CN101957780A (en) * 2010-08-17 2011-01-26 中国电子科技集团公司第二十八研究所 Resource state information-based grid task scheduling processor and grid task scheduling processing method
CN104462370A (en) * 2014-12-09 2015-03-25 北京百度网讯科技有限公司 Distributed task scheduling system and method

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589959A (en) * 2016-07-08 2018-01-16 湖南易分销电子商务有限公司 One kind is used for the multi-thread process automation task treatment technology of mall system
CN107077390A (en) * 2016-07-29 2017-08-18 华为技术有限公司 A kind of task processing method and network interface card
CN107077390B (en) * 2016-07-29 2021-06-29 华为技术有限公司 Task processing method and network card
CN107818017B (en) * 2016-09-14 2021-09-03 北京京东尚科信息技术有限公司 Multithreading computing system, data processing method and device thereof and computer readable storage medium
CN107818017A (en) * 2016-09-14 2018-03-20 北京京东尚科信息技术有限公司 Multithread calculating system and its data processing method
CN106453592B (en) * 2016-11-02 2020-05-08 华为技术有限公司 Asynchronous call processing method, device and distributed system
CN106453592A (en) * 2016-11-02 2017-02-22 华为技术有限公司 Asynchronous call processing method and apparatus, and distributed system
CN108243229A (en) * 2016-12-26 2018-07-03 北京国双科技有限公司 Request processing method and device
CN107861799A (en) * 2016-12-28 2018-03-30 平安科技(深圳)有限公司 task processing method and device based on multi-thread environment
CN107861799B (en) * 2016-12-28 2020-12-25 平安科技(深圳)有限公司 Task processing method and device based on multi-thread environment
CN108733459A (en) * 2017-04-13 2018-11-02 腾讯科技(深圳)有限公司 A kind of method of distributed timing, server and system
CN108804206A (en) * 2017-04-26 2018-11-13 武汉斗鱼网络科技有限公司 The processing method and system of synchronous task
CN107147637A (en) * 2017-05-05 2017-09-08 腾讯科技(深圳)有限公司 A kind of tasks carrying request processing method, device and computer-readable storage medium
CN107368359A (en) * 2017-05-31 2017-11-21 杭州大搜车汽车服务有限公司 A kind of asynchronous task performs method and its storage medium, device
CN107333282A (en) * 2017-06-05 2017-11-07 惠州Tcl移动通信有限公司 A kind of 5G terminal general-purpose platform optimization methods and system based on GPP
CN107621978A (en) * 2017-09-29 2018-01-23 郑州云海信息技术有限公司 A kind of High Availabitity task processing Controlling model under parallel computation environment
CN108427599A (en) * 2017-09-30 2018-08-21 平安科技(深圳)有限公司 Method, apparatus and storage medium is uniformly processed in asynchronous task
CN107908494A (en) * 2017-11-10 2018-04-13 泰康保险集团股份有限公司 Processing method, device, electronic equipment and the storage medium of anomalous event
CN107908494B (en) * 2017-11-10 2021-05-07 泰康保险集团股份有限公司 Abnormal event processing method and device, electronic equipment and storage medium
CN109933459A (en) * 2017-12-18 2019-06-25 北京京东尚科信息技术有限公司 A kind of execution method and apparatus of multitask
CN108182637A (en) * 2017-12-28 2018-06-19 泰康保险集团股份有限公司 A kind of generation method, device, medium and the electronic equipment of green logical service volume
CN108228880A (en) * 2018-01-24 2018-06-29 上海达梦数据库有限公司 Data base management system calls method, apparatus, equipment and the medium of external function
CN108804112B (en) * 2018-05-22 2022-02-11 上海分布信息科技有限公司 Block chain settlement processing method and system
CN108804112A (en) * 2018-05-22 2018-11-13 上海分布信息科技有限公司 A kind of block chain falls account processing method and system
CN110633133A (en) * 2018-06-21 2019-12-31 中兴通讯股份有限公司 Task processing method and device and computer readable storage medium
CN110716943A (en) * 2019-09-06 2020-01-21 中国平安财产保险股份有限公司 Missing data additional recording method and device, computer equipment and storage medium
CN110716943B (en) * 2019-09-06 2023-10-27 中国平安财产保险股份有限公司 Missing data complement method, device, computer equipment and storage medium
CN112799684A (en) * 2019-11-14 2021-05-14 中盈优创资讯科技有限公司 Service packet obtaining and loading method and device
CN112799684B (en) * 2019-11-14 2023-09-29 中盈优创资讯科技有限公司 Service package acquisition and loading method and device
CN111143065B (en) * 2019-12-25 2023-08-22 杭州安恒信息技术股份有限公司 Data processing method, device, equipment and medium
CN111143065A (en) * 2019-12-25 2020-05-12 杭州安恒信息技术股份有限公司 Data processing method, device, equipment and medium
CN113177056A (en) * 2021-06-29 2021-07-27 企查查科技有限公司 Method, device and storage medium for checking consistency of service data of multiple databases
CN113177056B (en) * 2021-06-29 2021-09-21 企查查科技有限公司 Method, device and storage medium for checking consistency of service data of multiple databases
CN114356533B (en) * 2022-03-15 2022-06-14 北京仁科互动网络技术有限公司 Micro-service non-perception issuing system and method, electronic equipment and storage medium
CN114356533A (en) * 2022-03-15 2022-04-15 北京仁科互动网络技术有限公司 Micro-service non-perception publishing system and method, electronic equipment and storage medium
CN115967641A (en) * 2023-03-16 2023-04-14 浙江正泰仪器仪表有限责任公司 Method and device for batch equipment parameter operation, computer equipment and medium
CN115967641B (en) * 2023-03-16 2023-05-30 浙江正泰仪器仪表有限责任公司 Method, device, computer equipment and medium for operating batch equipment parameters

Similar Documents

Publication Publication Date Title
CN105700937A (en) Multi-thread task processing method and device
CN107729139B (en) Method and device for concurrently acquiring resources
CA3000422C (en) Workflow service using state transfer
CN110825535B (en) Job scheduling method and system
US8239871B2 (en) Managing timeout in a multithreaded system by instantiating a timer object having scheduled expiration time and set of timeout handling information
KR100509794B1 (en) Method of scheduling jobs using database management system for real-time processing
US8756613B2 (en) Scalable, parallel processing of messages while enforcing custom sequencing criteria
US8930584B2 (en) System and method for providing a linearizable request manager
CN109656782A (en) Visual scheduling monitoring method, device and server
US20100153957A1 (en) System and method for managing thread use in a thread pool
CN110377406A (en) A kind of method for scheduling task, device, storage medium and server node
JPH08286962A (en) Processing system and method for scheduling of object activation
US20030233485A1 (en) Event queue
US20080091679A1 (en) Generic sequencing service for business integration
US8220002B2 (en) Isolation of user-interactive components
US8380788B2 (en) System and method for providing user context support in a native transaction platform
CN107832130A (en) A kind of job stream scheduling of banking system performs method, apparatus and electronic equipment
CN112486642A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
CN112148480A (en) Task processing method, device and equipment based on multithreading and storage medium
CN112948096A (en) Batch scheduling method, device and equipment
CN113791876A (en) System, method and apparatus for processing tasks
CN109558254B (en) Asynchronous callback method, system, device and computer readable storage medium
US6766508B1 (en) Object-oriented system having anonymous scheduler design pattern
CN109284177B (en) Data updating method and device
CN112596761B (en) Service update release method and device and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160622

RJ01 Rejection of invention patent application after publication