Task processing method and device
A task processing and task technology, applied in the field of task processing, can solve the problems of unable to support the timeliness requirements of process tasks, resource exhaustion, and excessive task accumulation, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] refer to figure 1 , shows a flow chart of the steps of a task processing method provided by an embodiment of the present application, as shown in figure 1 As shown, the task processing method may specifically include the following steps:
[0045] Step 101: Obtain the scanned pending tasks that need to be sent to the thread pool.
[0046] The embodiment of the present application may be applied to a scenario where scanned tasks that need to be sent to a thread pool are added to a task queue and the tasks in the task queue are processed.
[0047] Activiti workflow: Commonly used workflow components on the market, on the premise that the orderly work tasks have been serviced, use Activiti workflow components to connect these serviced steps in series or in parallel, execute them in a predetermined order, and Reach the end goal and get results.
[0048] Thread pool: thread is the control flow allocated by the operating system to execute the program. Due to the limited res...
Embodiment 2
[0069] refer to figure 2 , shows a flow chart of steps of another task processing method provided by the embodiment of the present application, as shown in figure 2 As shown, the task processing method may specifically include the following steps:
[0070] Step 201: Invoking a scanner preset in the Activiti workflow engine to scan the first task database to obtain pending tasks that need to be sent to the thread pool.
[0071] The embodiment of the present application may be applied to a scenario where scanned tasks that need to be sent to a thread pool are added to a task queue and the tasks in the task queue are processed.
[0072] Activiti workflow: Commonly used workflow components on the market, on the premise that the orderly work tasks have been serviced, use Activiti workflow components to connect these serviced steps in series or in parallel, execute them in a predetermined order, and Reach the end goal and get results.
[0073] In this embodiment, the first task...
Embodiment 3
[0103] refer to image 3 , which shows a schematic structural diagram of a task processing device provided by an embodiment of the present application, as shown in image 3 As shown, the task processing device 300 may specifically include the following modules:
[0104] A task to be processed acquisition module 310, configured to acquire the scanned tasks to be added to the thread pool;
[0105] A task to be processed adding module 320, configured to add the task to be processed to a preset task queue;
[0106] The target task obtaining module 330 is configured to call the target thread corresponding to the task processor from the thread pool to obtain the target task from the task queue when receiving the task processor to process the target task;
[0107] A target task execution module 340, configured to call the target thread to execute the target task.
[0108] The task processing device provided in the embodiment of the present application acquires the pending tasks th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


