Task processing method based on thread resources and related device

A task processing and resource processing technology, which is applied in the field of task processing methods and related devices based on thread resources, can solve the problems of single method of processing tasks, limited ability to process tasks, poor flexibility and applicability, etc., and achieves high flexibility. , Improve the flexibility of allocation and avoid the effect of task blocking

Pending Publication Date: 2019-07-16
PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the way each thread pool handles tasks is relatively single, and the ability to handle tasks is also very limited. When a large number of tasks are submitted, the thread pool can only process tasks in a relatively fixed way, and the flexibility and applicability become poor.

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
  • Task processing method based on thread resources and related device
  • Task processing method based on thread resources and related device
  • Task processing method based on thread resources and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0056] The thread resource-based task processing method provided by the embodiment of the present invention (for convenience of description, may be referred to as the method provided by the embodiment of the present invention) can be applied to business processing systems of various enterprises and various online business handling systems, here No restrictions. The method provided by the embodiment of the present invention can determine the thread resource sem...

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 embodiment of the invention discloses a task processing method based on thread resources. The method is suitable for business process optimization. The method comprises the steps of receiving a task processing request triggered by a target task; determining a first task type of the target task based on the task processing request, and determining a first thread resource semaphore according tothe first task type; according to the first thread resource semaphore, determining the number of idle thread resources used for executing the task of the first task type in a first sub-thread pool; and if the number of the idle thread resources used for executing the task of the first task type is not zero, determining the idle thread resources used for executing the target task in the first sub-thread pool, and processing the target task based on the idle thread resources. By adopting the embodiment of the invention, the flexibility of processing various types of tasks based on thread resources can be improved, and the task processing efficiency is improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a thread resource-based task processing method and a related device. Background technique [0002] With the rapid development of computer application technology, many enterprises carry out a large number of task integration and task allocation processing every day, so a large number of enterprise terminal equipment will use the thread pool technology to process tasks, and the multi-thread parallel processing method using the thread pool is fully Use terminal equipment resources to improve task processing efficiency. However, the way each thread pool handles tasks is relatively single, and the ability to handle tasks is also very limited. When a large number of tasks are submitted, the thread pool can only process tasks in a relatively fixed way, and the flexibility and applicability become poor. . Contents of the invention [0003] Embodiments of the present inventi...

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 Applications(China)
IPC IPC(8): G06F9/48G06F9/50
CPCG06F9/5038G06F9/5061G06F9/4881G06F2209/5011G06F2209/5021G06F2209/5018G06F2209/484
Inventor 柳芊
Owner PINGAN PUHUI ENTERPRISE MANAGEMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products