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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


