Thread pool management method based on task quantity of task processing request

A task processing and management method technology, applied in the field of thread pool management, can solve problems such as limitations in system processing efficiency, and achieve the effects of reducing overall task processing time, efficient system resources, and efficient use

Inactive Publication Date: 2012-11-14
BEIJING HUAZHENG PUHUI INFORMATION
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] To sum up, when the task processing volume corresponding to the task processing request is randomly distributed and the difference fluctuates greatly, the traditional thread pool management method will have limitations in improving the system processing efficiency, so it is necessary to adopt a new thread pool management method to further improve the processing efficiency of the system

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
  • Thread pool management method based on task quantity of task processing request
  • Thread pool management method based on task quantity of task processing request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The solution of the present invention will be described in detail below in conjunction with specific examples. In the example, the task processing request sent by the user is a file processing request, and the requested task amount parameter is the size of the file to be processed.

[0026] like figure 1 As shown, a thread pool management method based on the size of the request task is performed as follows:

[0027] First, the system performs initialization settings. Respectively set the capacity of the thread pool 51 with a large amount of tasks to be 5, and the capacity of the thread pool 52 with a small amount of tasks to be 10; initialize the task amount parameter threshold initial value T 0 =1M (representing that the file size threshold is 1 megabyte), the task amount parameter threshold adjustment step size λ=0.1, the task amount coefficient ξ=0.2 and the frequency f=of the task processing request management system 4 reading the task processing request registrati...

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 thread pool management method based on task quantity of a task processing request. The method comprises: when a task processing request monitoring system monitors a new task processing request, a task processing request registration system records the relevant information of the request; a task processing request management system reads task processing request informationrecorded in the task processing request registration system at regular time, and dispatches task processing requests to corresponding sub-thread pools for treatment according to the relation between the task processing quantity of the task processing request and task processing quantity parameter threshold values and the sequence of the time for submitting the task processing requests; and after the task processing request management system finishes scheduling, a task quantity parameter threshold value regulator adjusts the task quantity parameter threshold values in an adaptive mode. By utilizing the method, the system processing efficiency can be effectively improved under the application scene that the task processing quantities corresponding to the task processing requests are randomly distributed and have larger different fluctuation.

Description

technical field [0001] The invention relates to a thread pool management method based on the size of task processing request tasks, and belongs to the technical field of computer applications. Background technique [0002] In the scenario where multiple users concurrently send task processing requests to the server, multi-threaded parallel processing is mostly used to make full use of server resources and improve processing efficiency. At the same time, in order to reduce the system resource consumption caused by the frequent creation and destruction of multi-threads and avoid excessive memory consumption caused by too many threads, the thread pool method described in the Chinese invention patent application number CN2004100500352 is mostly used. In this method, when there is an idle thread in the thread pool, the task scheduler will hand over the request to the idle thread for processing; When there is an idle thread in the pool, the task processing request is handed over ...

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/50G06F9/38
Inventor 孔超石永鑫陈宾
Owner BEIJING HUAZHENG PUHUI INFORMATION
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