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

Thread binding processing method and device

A processing method and thread technology, applied in multi-programming devices, electrical digital data processing, program control design, etc., can solve problems such as high CPU usage and process failure

Active Publication Date: 2018-11-16
天津猎鹰网络技术有限公司
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a thread binding processing method and device to at least solve the problem in the prior art that different threads under the same process all run on the same CPU core, which may cause excessive CPU usage and cause the process to fail. question

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0016] It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate ...

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 discloses a thread binding processing method and device, wherein the method comprises the steps of: judging whether the proportion that a first thread occupies the first kernel of a CPUis beyond a threshold value or not, wherein the CPU comprises multiple kernels; and the first kernel is one in the multiple kernels; when the proportion that the first thread occupies the first kernelis beyond the threshold value, judging whether a second thread also runs in the first kernel or not, wherein the second thread and the first thread are threads in the same process; and, when the second thread runs in the first kernel, determining whether the first thread or the second thread is bound to the second kernel in the CPU at least according to the proportion that the first thread occupies the first kernel, wherein the second kernel is one in the multiple kernels. By means of the thread binding processing method and device disclosed by the invention, the technical problem that the process fails to run due to too-high occupation of the CPU when different threads in the same process run on the same CPU kernel in the prior art can be solved.

Description

technical field [0001] The present invention relates to the field of computer software, in particular to a thread binding processing method and device. Background technique [0002] A program is an ordered collection of instructions and data, and a process is an execution of a program on a processor. Usually a process can contain multiple threads, and each thread is used as the basic unit of the central processing unit CPU. That is to say, a process is the smallest unit for the operating system to allocate resources (including but not limited to CPU, memory, disk, I / O, etc.), and a thread is the basic unit for CPU scheduling and allocation. For example, opening WeChat on a computer is a process, and opening a browser is a process. The multiple subtasks in WeChat, such as receiving messages and sending messages, are multiple threads under the process of WeChat. Since the process has an independent address space, after a process crashes, it usually does not affect other pro...

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 天津猎鹰网络技术有限公司
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