Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Thread allocation method, apparatus, computer equipment and storage medium

An allocation method and thread technology, applied in the Internet field, to achieve the effect of reducing mutual interference

Active Publication Date: 2022-08-02
SUNING CLOUD COMPUTING CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

To a certain extent, this method reduces the interaction between tasks, but it is actually impossible to give each task a thread pool for all tasks, so this method still cannot actually solve the problem caused by using thread pool threads between tasks interfere with each other

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 allocation method, apparatus, computer equipment and storage medium
  • Thread allocation method, apparatus, computer equipment and storage medium
  • Thread allocation method, apparatus, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach

[0080] The business scenario to which the thread allocation method based on task processing of the present application is applicable: a scenario in which a thread pool is enabled to process tasks concurrently with multiple threads. For example, in scenarios such as processing orders, processing main data interface service data, and asynchronous downloading of sales reports in the business system, it is necessary to enable multi-thread processing through the thread pool. Through the thread allocation method based on task processing of the present application, the allocation of limited threads among the three functions can be adjusted through flexible configuration, which can not only satisfy the processing time of the core functions, but also avoid that the remaining functions have no threads available and are always blocked. The status affects user experience issues.

[0081]Specifically, the method for enabling threads is encapsulated in an abstract class, and the method for ...

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 present application relates to a thread allocation method, apparatus, computer equipment and storage medium. The method includes: acquiring a thread threshold of a target task, where the thread threshold is a maximum number of threads for processing task data corresponding to the target task; acquiring a number of threads for processing task data in a cache queue, the cache queue being used for The task data called by the task processing request of the target task is stored; and the thread allocation to the cache queue is controlled according to the thread threshold and the quantity value. The above method can reduce the mutual interference of multiple tasks using the same thread pool in the task processing process.

Description

technical field [0001] The present application relates to the field of Internet technologies, and in particular, to a thread allocation method, apparatus, computer equipment and storage medium. Background technique [0002] Processing tasks by enabling multithreading in the thread pool is a commonly used solution to improve system task processing efficiency. Reasonable use of threads in the thread pool can not only improve the response efficiency of system processing tasks, but also reduce the consumption of system resources in the process of thread creation and destruction by reusing the created threads. Through the utilization and management of thread pool threads, on the one hand, it can ensure that threads will not be created unlimitedly, and on the other hand, threads can be uniformly scheduled and monitored. [0003] Thread sharing and queues in the thread pool process data according to the principle of FIFO (First Input First Output, first-in, first-out), but this pr...

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/50
CPCG06F9/5061G06F9/5027G06F2209/5011G06F2209/5018G06F2209/5013
Inventor 刘瑞涛胥磊
Owner SUNING CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products