Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for processing batch tasks

A technology of batch tasks and processing methods, applied in the field of multi-task processing, can solve the problem of limited maximum number of threads, and achieve the effect of improving processing capacity, reducing thread resource usage, and saving thread resources

Active Publication Date: 2020-05-22
CHINA CONSTRUCTION BANK
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the maximum number of threads that the system can open at the same time is limited. When the number of started threads reaches the upper limit, it will cause delayed processing of customer requests. Based on this, in order to improve the processing capacity of the system, batch tasks In the processing scenario, how to reduce the thread resource usage when processing customer requests and save background thread resources becomes very important

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for processing batch tasks
  • Method and device for processing batch tasks
  • Method and device for processing batch tasks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Embodiment 1 of the present invention provides a batch task processing method, which can be applied to batch task processing in the financial and other fields, for example, can be specifically applied to the processing of enterprise cash batch approval transactions, refer to figure 1 , the method may include the following steps:

[0048] Step 101. Obtain a batch task processing request of the requester, the batch task processing request includes the requester ID and task information of the batch tasks to be processed, and the task information includes the task amount of the batch tasks.

[0049] Wherein, as an example, for the processing process of enterprise cash batch approval transactions, the requester may specifically be a customer of the bank, and the processing logic of the method of the present invention may specifically be executed and implemented in the background of a bank-related system.

[0050]Based on this, this step can be implemented in the background o...

Embodiment 2

[0064] In this example, refer to figure 2 The flow chart of the method for processing batch tasks is shown, and the method may also include the following steps:

[0065] Step 105, if the task amount of the batch task does not exceed the maximum number of tasks of a single thread, start a thread, and use the started thread to process the batch task processing request synchronously.

[0066] Specifically, if the amount of batch tasks requested by the requester does not exceed the maximum number of tasks for a single thread, a single thread can be directly started to process the batch task processing request proposed by the requester. The maximum number of tasks for a single thread is exceeded, so that the single thread can process this request synchronously.

Embodiment 3

[0068] In this example, refer to image 3 The flow chart of the method for processing batch tasks is shown, and the method may also include the following steps:

[0069] Step 106, when the priority level corresponding to the requester is a high priority level, determine the number of multi-threaded threads to be started according to the task amount of the batch task and the maximum number of single-thread tasks;

[0070] Step 107, start a plurality of threads whose quantity is the determined number of threads, and use the plurality of threads to synchronously process the batch task processing request.

[0071] If the priority level of the requester is high priority, it means that the requester has a higher timeliness requirement, or the requester is more important, etc. In order to avoid affecting the customer experience, the usual processing method is adopted and processed according to the requester's request The amount of tasks and the maximum number of single-threaded task...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a processing method and device for a batched task. The method comprises the steps that when the quantity of the batched task required by a requester to be processed exceeds the maximum task number of a single thread, a priority level corresponding to the requester is obtained, when the requester corresponds to a low priority level, one thread is started, and finally the started thread is utilized to conduct asynchronous processing on the processing request of the batched task, with the quantity exceeding the maximum task number of the single thread, of the requester, In this way, by conducting classification of high and low priority levels on requesters and under the condition that the quantity of the batched task required by the requester in the low priority level to be processed exceeds the maximum task number of the single thread, a scheme that only one thread is started to conduct asynchronous processing (namely non-real time processing) on the processing request of the batched task of the requester is designed for the requester in the low priority level, accordingly, the occupancy of thread resources can be effectively reduced when the batched task is processed, background thread resources are saved, and then the processing capacity of a system is improved.

Description

technical field [0001] The invention belongs to the technical field of multi-task processing, and in particular relates to a batch task processing method and device. Background technique [0002] In the current financial field, there are often multi-task batch processing requirements. For example, in the batch approval transaction of enterprise cash, the bank-related processing system often needs to process the batch approval tasks of multiple customers. [0003] In the processing method of the prior art, in response to the batch task processing requirements of each customer, the system will generally start a single thread for each customer according to the task volume of the batch task requested by each customer (the customer's task volume does not exceed the single thread. The maximum number of tasks) or multiple threads (when the client's task volume exceeds the maximum number of tasks for a single thread) perform synchronous (real-time) processing of client batch task re...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48G06F9/52
CPCG06F9/4881G06F9/52
Inventor 戈笑珊彭渺邹鹏刘俊伍于磊
Owner CHINA CONSTRUCTION BANK