CN107967549B - Multi-process task processing device and method - Google Patents

Multi-process task processing device and method Download PDF

Info

Publication number
CN107967549B
CN107967549B CN201610916509.XA CN201610916509A CN107967549B CN 107967549 B CN107967549 B CN 107967549B CN 201610916509 A CN201610916509 A CN 201610916509A CN 107967549 B CN107967549 B CN 107967549B
Authority
CN
China
Prior art keywords
task
processing
task processing
items
type
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.)
Active
Application number
CN201610916509.XA
Other languages
Chinese (zh)
Other versions
CN107967549A (en
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.)
Nanjing Tuniu Technology Co ltd
Original Assignee
Nanjing Tuniu 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 Nanjing Tuniu Technology Co ltd filed Critical Nanjing Tuniu Technology Co ltd
Priority to CN201610916509.XA priority Critical patent/CN107967549B/en
Publication of CN107967549A publication Critical patent/CN107967549A/en
Application granted granted Critical
Publication of CN107967549B publication Critical patent/CN107967549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a multi-process task processing device and method, and relates to the field of task processing. The multi-process task processing device and the method comprise an information receiving unit, a task processing unit and a task processing unit, wherein the information receiving unit is used for receiving task processing items of a plurality of different processes sent by a client, and each task processing item carries task type information; the task allocation unit is used for allocating each task processing item to a task cache pool associated with the task type information of the task processing item; and the task processing unit is used for simultaneously and respectively processing the task processing items distributed to each task cache pool. The multi-flow task processing device and the multi-flow task processing method achieve the purpose that task processing items in different nodes are respectively processed in different task cache pools, so that the task processing efficiency is effectively improved, and the task processing time is saved.

Description

Multi-process task processing device and method
Technical Field
The invention relates to the field of task processing, in particular to a multi-process task processing device and method.
Background
The multi-process task means that one task comprises a plurality of processing process nodes, for example, the processing process nodes of a leave asking strip submitted by employees of one company by using an internal system comprise department leadership examination and approval, personnel expert examination and approval and leave; as another example, a processing node for a travel order includes an occupancy process, a sign up process, a confirmation process, and an outbound process.
In the prior art, the task of each processing flow node of the multi-flow task is cached in a task cache pool; tasks of all process flow nodes in the task cache pool are scanned circularly by a single anonymous thread and distributed to the thread pool for processing. When the request amount of the multi-process task is large, the tasks of each processing flow node of the multi-process task are cached in one task cache pool to be processed one by one, time is wasted, and the task cache pool is scanned by a single thread, so that the scanning progress is limited, and the time is wasted.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a multi-process task processing apparatus and method.
In a first aspect, an embodiment of the present invention provides a multi-process task processing apparatus, where the multi-process task processing apparatus includes:
the information receiving unit is used for receiving task processing items of a plurality of different processes sent by the client, and each task processing item carries task type information;
the task allocation unit is used for allocating each task processing item to a task cache pool associated with the task type information of the task processing item;
and the task processing unit is used for simultaneously and respectively processing the task processing items distributed to each task cache pool.
In a second aspect, an embodiment of the present invention further provides a multi-process task processing method, where the multi-process task processing method includes:
receiving task processing items of a plurality of different processes sent by a client, wherein each task processing item carries task type information;
allocating each task processing item to a task cache pool associated with task type information of the task processing item;
and simultaneously, the task processing items distributed to each task cache pool are processed respectively.
Compared with the prior art, the multi-flow task processing device and method provided by the embodiment of the invention distribute each task processing item to the task cache pool associated with the task type information of the task processing item; and then the task processing items distributed to each task cache pool are processed simultaneously, so that the task processing items at different nodes are processed in different task cache pools, the task processing efficiency is effectively improved, and the task processing time is saved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of interaction between a client and a server according to an embodiment of the present invention;
fig. 2 is a block diagram of a server according to an embodiment of the present invention;
FIG. 3 is a functional unit diagram of a multi-process task processing device according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating sub-units of a task processing unit according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for processing multiple tasks according to an embodiment of the present invention;
fig. 6 is a flowchart of another multi-flow task processing method according to an embodiment of the present invention.
Wherein, the corresponding relation between the reference signs and the component names is as follows: the multi-flow task processing device 100, the server 101, the client 102, the processor 103, the memory 104, the storage controller 105, the peripheral interface 106, the information receiving unit 301, the task allocating unit 302, the task processing unit 303, the judging subunit 304, the recording subunit 305, the scanning subunit 306, and the processing subunit 307.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The multi-process task processing device and method provided by the embodiment of the invention can be applied to the application environment shown in fig. 1. As shown in fig. 1, a server 101 and a client 102 are located in a network, and data interaction is performed between the server 101 and the client 102 through the network. Fig. 2 is a block diagram of the server 101. The server 101 comprises a multi-process task processing device 100, a processor 103, a memory 104, a storage controller 105 and a peripheral interface 106. The multitasking device 100 is installed in the memory 104 and includes one or more software functional modules executed by the processor 103. The server 101 may be, but is not limited to, a web server, a database server, a cloud server, and the like.
The memory 104, the memory controller 105 and the processor 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The multitasking device 100 includes at least one software function module which can be stored in the memory 104 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the server 101. The processor 103 is used for executing executable modules stored in the memory 104, for example, software functional modules or computer programs included in the multi-task processing device 100.
The Memory 104 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 104 is configured to store a program, and the processor 103 executes the program after receiving an execution instruction, and the method executed by the server 101 defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 103, or implemented by the processor 103.
The processor 103 may be an integrated circuit chip having signal processing capabilities. The Processor 103 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 103 may be any conventional processor 103 or the like.
The peripherals interface 106 couples various input/output devices to the processor 103 and to the memory 104. In some embodiments, peripheral interface 106, processor 103, and memory controller 105 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
Referring to fig. 3, a multi-process task processing device according to an embodiment of the present invention includes an information receiving unit 301, a task allocating unit 302, and a task processing unit 303.
The information receiving unit 301 is configured to receive task processing items of a plurality of different processes sent by the client 102, where each task processing item carries task type information.
In this embodiment, the task processing items are travel resource information processing items, and the travel resource information processing items include an occupation process, a signing process, a confirmation process, and an outbound process. The occupation process comprises 1, receiving an outbound request 2 sent by a client 102, and selecting a supplier according to the received outbound request; 3. sending the outbound demand to a supplier end and waiting for the feedback of the supplier; 4. and after receiving the feedback sent by the provider, generating an occupancy result, and sending the occupancy result to the client 102. The subscription process includes receiving subscription ticket information and payment amount information sent by the client 102. The confirmation process comprises 1, sending the outbound requirement to the supplier end again and waiting for the confirmation of the supplier; 2. and generating a settlement document after receiving the confirmation information sent by the supplier. The outbound process comprises 1, sending an outbound notice 2 to the client 102, and ending the whole process after the guest goes outbound and returns. Of course, the task processing items may be not only the travel resource information processing items, but also other multi-process processing items, such as company application processing items or fund application approval processing items, and the like, which are only exemplified herein.
The task allocation unit 302 is configured to allocate each task processing item to a task cache pool associated with task type information of the task processing item.
The task processing unit 303 is configured to process task processing items allocated to each task cache pool simultaneously and respectively.
In this embodiment, each task cache pool is pre-assigned with a process Engine (Engine), which is a core component of a development program or system on an electronic platform; by using the engine, the developer can quickly establish, lay out the functions required by the program, or utilize the operation of its auxiliary programs. In this embodiment, the task processing unit 303 calls the flow engine allocated to each task cache pool, and each flow engine is configured to manage processing of task processing items in one task cache pool, so that all task processing items are prevented from being processed by the same flow engine in the same task cache pool, processing efficiency of the task processing items is improved, and processing time is saved.
Specifically, the task processing items include an information type task processing item and a time type task processing item, and as shown in fig. 4, the task processing unit 303 includes a scanning subunit 306 and a processing subunit 307.
The scanning subunit 306 is configured to respectively start two scanning threads, and one of the scanning threads scans and identifies the task processing items located in each task cache pool one by one and extracts the information type task processing items to the processing thread pool; and the other scanning thread scans and identifies the task processing items positioned in each task cache pool one by one and extracts the time type task processing items to the processing thread pool.
In this embodiment, one of the scanning threads is dedicated to scanning information TYPE task processing items, and the other scanning thread scans time TYPE task processing items, specifically, the TYPE _ field value of the ACT _ RU _ JOB table of the task processing items includes "message" and "timer", where "message" indicates that the task processing item is an information TYPE task processing item, and "timer" indicates that the task processing item is a time TYPE task processing item, and when one of the scanning threads scans that the TYPE _ field value of the ACT _ RU _ JOB table of the task processing item is "message", the task processing item is extracted to the processing thread pool; when the TYPE _ field value of the ACT _ RU _ JOB table scanned by another scanning thread is "timer", the task processing item is extracted to the processing thread pool. Different types of task processing items are extracted to the processing thread pool through different scanning threads, and the processing efficiency of the task processing items is further improved.
The processing subunit 307 is configured to process the information type task processing item and the time type task processing item in the processing thread pool.
Preferably, as another embodiment for extracting task processing items, as shown in fig. 4, the task processing unit 303 further includes a determining subunit 304 and a recording subunit 305.
The determining subunit 304 is configured to determine whether the task processing transaction located in each task cache pool carries a time icon.
In this embodiment, the time icon is an icon mapped to the TYPE _ field value "timer" of the ACT _ RU _ JOB table of the task processing item.
The recording subunit 305 is configured to record the task processing items with the time icons as time-type task processing items, and record the task processing items without the time icons as information-type task processing items.
The scanning subunit 306 is configured to respectively start two scanning threads, and one of the scanning threads scans the information type task processing items located in each task cache pool and extracts the information type task processing items to the processing thread pool; another scan thread scans the time-type task transactions located in each task cache pool and fetches the time-type task transactions to the processing thread pool.
By the judgment subunit 304 and the recording subunit 305 separating and recording the information type task processing items and the time type task processing items in advance, the scanning subunit 306 does not need to scan and identify different types of task processing items one by one, thereby improving the efficiency of task processing items.
The time icon carries processing time information; the processing subunit 307 is configured to process the extracted information-type task processing items in the processing thread pool and process the extracted time-type task processing items according to the processing time information.
For example, if the processing time information carried by the time icon is 9:00, the processing subunit 307 processes the task processing item at 9:00, and if the processing time information carried by the time icon is 10min, the processing subunit 307 processes the task processing item after 10 min.
Referring to fig. 5, an embodiment of the present invention further provides a multi-process task processing method, and it should be noted that the basic principle and the generated technical effect of the multi-process task processing method provided in the embodiment are the same as those of the embodiment described above, and for brief description, corresponding contents in the embodiment described above may be referred to for parts that are not mentioned in the embodiment. The multi-flow task processing method comprises the following steps:
step S401: receiving task processing items of a plurality of different processes sent by the client 102, wherein each task processing item carries task type information.
It is understood that the task processing items of a plurality of different processes sent by the client 102 are received by the information receiving unit 301, and each task processing item carries task type information.
Step S402: each task transaction is assigned to a task cache pool associated with task type information for the task transaction.
It will be appreciated that each task transaction is assigned to a task cache pool associated with the task type information of that task transaction by the task assignment unit 302.
Step S403: and simultaneously, the task processing items distributed to each task cache pool are processed respectively.
It is understood that the task processing items allocated to each task cache pool are processed by the task processing unit 303 at the same time.
The task processing items include an information type task processing item and a time type task processing item, and step S403 may include:
step S4031: respectively starting two scanning threads, wherein one scanning thread carries out scanning identification on task processing items positioned in each task cache pool one by one and extracts information type task processing items to a processing thread pool; and the other scanning thread scans and identifies the task processing items positioned in each task cache pool one by one and extracts the time type task processing items to the processing thread pool.
It can be understood that, two scanning threads are respectively started by the scanning subunit 306, and one of the scanning threads scans and identifies the task processing items located in each task cache pool one by one and extracts the information type task processing items to the processing thread pool; and the other scanning thread scans and identifies the task processing items positioned in each task cache pool one by one and extracts the time type task processing items to the processing thread pool.
Step S4032: and processing the information type task processing items and the time type task processing items in the processing thread pool.
It is to be understood that the information type task processing matters and the time type task processing matters are processed in the processing thread pool by the processing subunit 307.
Referring to fig. 6, another multi-process task processing method is further provided in the embodiment of the present invention, it should be noted that the basic principle and the generated technical effect of the multi-process task processing method provided in the embodiment are the same as those of the above embodiment, and for brief description, corresponding contents in the above embodiment may be referred to where this embodiment is not mentioned.
The multi-flow task processing method comprises the following steps:
step S501: receiving task processing items of a plurality of different processes sent by the client 102, wherein each task processing item carries task type information.
It is understood that the task processing items of a plurality of different processes sent by the client 102 are received by the information receiving unit 301, and each task processing item carries task type information.
The task processing items are tourism resource information processing items, and the processes of the tourism resource information processing items comprise an occupation process, a signing process, a confirmation process and an outing process.
Step S502: each task transaction is assigned to a task cache pool associated with task type information for the task transaction.
It will be appreciated that each task transaction is assigned to a task cache pool associated with the task type information of that task transaction by the task assignment unit 302.
Step S503: and judging whether the task processing items in the task cache pool carry time icons or not.
It is to be understood that the determining subunit 304 determines whether the task processing transaction located in the task cache pool carries a time icon.
Step S504: and recording the task processing items carrying the time icons as time type task processing items, and recording the task processing items not carrying the time icons as information type task processing items.
It is to be understood that the task processing item not carrying the time icon is recorded as the information type task processing item by recording the task processing item carrying the time icon as the time type task processing item.
Step S505: and simultaneously, the task processing items distributed to each task cache pool are processed respectively.
It is understood that the task processing items allocated to each task cache pool are processed by the task processing unit 303 at the same time.
Specifically, the time icon carries processing time information, and step S505 includes:
step S5051: respectively starting two scanning threads, wherein one scanning thread scans the information type task processing items positioned in each task cache pool and extracts the information type task processing items to the processing thread pool; another scan thread scans the time-type task transactions located in each task cache pool and fetches the time-type task transactions to the processing thread pool.
It can be understood that, two scanning threads are respectively started by the scanning subunit 306, and one of the scanning threads scans the information type task processing items located in each task cache pool and extracts the information type task processing items to the processing thread pool; another scan thread scans the time-type task transactions located in each task cache pool and fetches the time-type task transactions to the processing thread pool.
Step S5052: and processing the extracted information type task processing items in the processing thread pool and processing the extracted time type task processing items according to the processing time information.
It is to be understood that the extracted information type task processing items and the extracted time type task processing items are processed according to the processing time information in the processing thread pool by the processing subunit 307.
In summary, the multi-process task processing apparatus and method provided in the embodiments of the present invention allocate each task processing item to the task cache pool associated with the task type information of the task processing item; and then the task processing items distributed to each task cache pool are processed simultaneously, so that the task processing items at different nodes are processed in different task cache pools, the task processing efficiency is effectively improved, and the task processing time is saved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (8)

1. A multitask processing device, characterized by comprising:
the information receiving unit is used for receiving task processing items of a plurality of different processes sent by the client, and each task processing item carries task type information;
the task allocation unit is used for allocating each task processing item to a task cache pool associated with the task type information of the task processing item; wherein the allocating each task processing item to the task cache pool associated with the task type information of the task processing item comprises: distributing each task processing item to the task cache pool according to the process stage type of each task processing item;
the task processing unit is used for simultaneously and respectively processing the task processing items distributed to each task cache pool;
the task processing items include information type task processing items and time type task processing items, and the task processing unit includes:
the scanning subunit is used for respectively starting two scanning threads, one of the scanning threads carries out scanning identification on the task processing items positioned in each task cache pool one by one and extracts the information type task processing items to the processing thread pool; the other scanning thread scans and identifies the task processing items positioned in each task cache pool one by one and extracts the time type task processing items to a processing thread pool;
and the processing subunit is used for processing the information type task processing items and the time type task processing items in the processing thread pool.
2. The multi-flow task processing device according to claim 1, wherein the task processing unit further includes:
the judging subunit is used for judging whether the task processing items in each task cache pool carry time icons or not;
a recording subunit, configured to record the task processing item with the time icon as a time-type task processing item, record the task processing item without the time icon as an information-type task processing item,
the scanning subunit is used for respectively starting two scanning threads, and one scanning thread scans the information type task processing items positioned in each task cache pool and extracts the information type task processing items to the processing thread pool; another scan thread scans the time-type task transactions located in each task cache pool and fetches the time-type task transactions to the processing thread pool.
3. The multitasking device according to claim 2, wherein the time icon carries processing time information; the processing subunit is used for processing the extracted information type task processing items in the processing thread pool and processing the extracted time type task processing items according to the processing time information.
4. The multi-process task processing device of claim 1, wherein the task processing item is a travel resource information processing item, and the processes of the travel resource information processing item include an occupancy process, a sign-up process, a confirmation process, and an outbound process.
5. A multi-process task processing method is characterized by comprising the following steps:
receiving task processing items of a plurality of different processes sent by a client, wherein each task processing item carries task type information;
allocating each task processing item to a task cache pool associated with task type information of the task processing item;
simultaneously, task processing items distributed to each task cache pool are processed respectively;
the task processing items comprise information type task processing items and time type task processing items, and the step of simultaneously and respectively processing the task processing items distributed to each task cache pool comprises the following steps:
respectively starting two scanning threads, wherein one scanning thread carries out scanning identification on task processing items positioned in each task cache pool one by one and extracts information type task processing items to a processing thread pool; the other scanning thread scans and identifies the task processing items positioned in each task cache pool one by one and extracts the time type task processing items to a processing thread pool;
and processing the information type task processing items and the time type task processing items in the processing thread pool.
6. The multi-process task processing method of claim 5, wherein before the step of processing the task processing items allocated to each task buffer pool at the same time, the method further comprises:
judging whether task processing items in a task cache pool carry time icons or not;
recording the task processing items with the time icons as time type task processing items, and recording the task processing items without the time icons as information type task processing items;
the step of simultaneously and respectively processing the task processing items distributed to each task cache pool comprises the following steps:
respectively starting two scanning threads, wherein one scanning thread scans the information type task processing items positioned in each task cache pool and extracts the information type task processing items to the processing thread pool; another scan thread scans the time-type task transactions located in each task cache pool and fetches the time-type task transactions to the processing thread pool.
7. The multi-process task processing method according to claim 6, wherein the time icon carries processing time information; the method further comprises the following steps: and processing the extracted information type task processing items in the processing thread pool and processing the extracted time type task processing items according to the processing time information.
8. The multi-process task processing method of claim 5, wherein the task processing items are travel resource information processing items, and the processes of the travel resource information processing items include an occupation process, a contract signing process, a confirmation process, and an outbound process.
CN201610916509.XA 2016-10-20 2016-10-20 Multi-process task processing device and method Active CN107967549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610916509.XA CN107967549B (en) 2016-10-20 2016-10-20 Multi-process task processing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610916509.XA CN107967549B (en) 2016-10-20 2016-10-20 Multi-process task processing device and method

Publications (2)

Publication Number Publication Date
CN107967549A CN107967549A (en) 2018-04-27
CN107967549B true CN107967549B (en) 2022-02-01

Family

ID=61997200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610916509.XA Active CN107967549B (en) 2016-10-20 2016-10-20 Multi-process task processing device and method

Country Status (1)

Country Link
CN (1) CN107967549B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254199A (en) * 2021-05-07 2021-08-13 埃森智能科技(深圳)有限公司 Method, system and equipment for simultaneously processing multiple tasks

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722417A (en) * 2012-06-07 2012-10-10 腾讯科技(深圳)有限公司 Distribution method and device for scan task
CN105573850A (en) * 2015-11-09 2016-05-11 广州多益网络科技有限公司 Multi-process interactive method and system and server
CN105760234A (en) * 2016-03-17 2016-07-13 联动优势科技有限公司 Thread pool management method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452555A (en) * 2008-12-31 2009-06-10 中国建设银行股份有限公司 Method for enquiring personal credit information, system and personal credit enquiring system
US9747008B2 (en) * 2012-08-24 2017-08-29 Northrop Grumman Systems Corporation Method and user interface device for efficient collaboration in a maintenance environment
CN102902573B (en) * 2012-09-20 2014-12-17 北京搜狐新媒体信息技术有限公司 Task processing method and device based on shared resources
CN103593236B (en) * 2013-11-14 2017-02-22 华为技术有限公司 Computer equipment, method and device for scheduling service process
GB2513779B (en) * 2014-08-14 2015-05-13 Imp Io Ltd A method and system for scalable job processing
CN105511958A (en) * 2014-10-11 2016-04-20 阿里巴巴集团控股有限公司 Method and device for task scheduling
US10297347B2 (en) * 2015-04-06 2019-05-21 Preventice Solutions, Inc. Adverse event prioritization and handling
CN105159768A (en) * 2015-09-09 2015-12-16 浪潮集团有限公司 Task management method and cloud data center management platform
CN105303307B (en) * 2015-10-16 2020-02-14 京北方信息技术股份有限公司 Method and device for distributing work tasks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722417A (en) * 2012-06-07 2012-10-10 腾讯科技(深圳)有限公司 Distribution method and device for scan task
CN105573850A (en) * 2015-11-09 2016-05-11 广州多益网络科技有限公司 Multi-process interactive method and system and server
CN105760234A (en) * 2016-03-17 2016-07-13 联动优势科技有限公司 Thread pool management method and device

Also Published As

Publication number Publication date
CN107967549A (en) 2018-04-27

Similar Documents

Publication Publication Date Title
US10033816B2 (en) Workflow service using state transfer
US20160342927A1 (en) Systems and methods for providing an information technology interface
WO2019075842A1 (en) Task allocation method and apparatus, storage medium and computer device
US20070106669A1 (en) Ensuring Timely Servicing of Desired Transactions in a Database Server
CN110827002B (en) Approval method based on workflow and workflow engine
CN108897729B (en) Transaction template sharing method and device, electronic equipment and storage medium
CN112631751A (en) Task scheduling method and device, computer equipment and storage medium
CN113886069A (en) Resource allocation method and device, electronic equipment and storage medium
CN111857674A (en) Business product generation method and device, electronic equipment and readable storage medium
CN113656180A (en) System and method for batch processing files under unitized architecture and related products
CN111062572A (en) Task allocation method and device
CN107967549B (en) Multi-process task processing device and method
CN107045452B (en) Virtual machine scheduling method and device
CN116881003A (en) Resource allocation method, device, service equipment and storage medium
CN108521524B (en) Agent collaborative task management method and device, computer equipment and storage medium
CN116302271A (en) Page display method and device and electronic equipment
CN115564635A (en) GPU resource scheduling method and device, electronic equipment and storage medium
CN106598706B (en) Method and device for improving stability of server and server
CN115373822A (en) Task scheduling method, task processing method, device, electronic equipment and medium
CN110033145B (en) Financial sharing job order separating method and device, equipment and storage medium
CN113781154A (en) Information rollback method, system, electronic equipment and storage medium
CN111292143A (en) Electronic invoice issuing method, device and computer system
CN110673931A (en) Distributed calculation method for document synthesis, document synthesis system and control device thereof
CN109165200B (en) Data synchronization method and device, computing equipment and computer storage medium
CN113610586B (en) Invoice application data compensation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant