Unlock instant, AI-driven research and patent intelligence for your innovation.

Thread processing method and device

A thread processing and thread technology, applied in the computer field, can solve problems such as inability to deal with complex situations of multiple thread pools

Pending Publication Date: 2020-06-26
BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Traditional solutions usually only schedule for a single thread pool, so that the number of working threads in a single thread pool is equal to the number of CPU logical cores, and cannot cope with complex situations with multiple thread pools

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 processing method and device
  • Thread processing method and device
  • Thread processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0049] The terminology used in the present disclosure is for the purpose of describing particular embodiments only, and is not intended to limit the present disclosure. As used in this disclosure and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood...

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 processing method and device, electronic equipment and a storage medium. The method comprises the following steps of: keeping a target process in predefined load operation; determining a busy thread pool according to the CPU occupancy rate; adjusting the number of threads in the busy thread pool and the number of threads in other thread pools, wherein the number ofthe threads is equal to the number of the CPU logic cores, enabling CPU occupancy rates among different thread pools to be close, and finally, establishing a one-to-one correspondence relationship between a single thread and a single CPU logic core, so as to enable any CPU logic core to only run the corresponding thread. According to the method, the threads in the multi-thread pool scene can be effectively scheduled, so that a single CPU logic core only processes a single thread and averagely controls the load of each thread, and delay jitter caused by frequent switching of the processing threads by the CPU is avoided.

Description

technical field [0001] The present disclosure relates to the technical field of computers, and in particular to a thread processing method, device, electronic equipment and storage medium. Background technique [0002] Thread switching and thread scheduling are important components in high-performance server scenarios. If the number of threads is too large, the CPU needs to switch and run each thread frequently, and the switching process needs to consume CPU resources. If the number of threads is too small, each thread may be too busy. How to choose an appropriate number of threads and how to effectively reduce the frequency of thread switching are issues that the industry has been paying attention to. [0003] Traditional solutions usually only schedule for a single thread pool, so that the number of working threads in a single thread pool is equal to the number of CPU logical cores, and cannot cope with complex situations with multiple thread pools. Contents of the inve...

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
IPC IPC(8): G06F9/50
CPCG06F9/505G06F2209/5018
Inventor 曹红阳
Owner BEIJING DAJIA INTERNET INFORMATION TECH CO LTD