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

Lock-based thread management method and thread management device

A thread management and thread technology, which is applied in the computer field, can solve problems that affect system processing performance, complicate the implementation process, and occupy large processing resources.

Inactive Publication Date: 2014-09-17
HUAWEI TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The above existing technologies need to simulate different application scenarios, and monitor and analyze the lock application status in the simulated application scenarios, so as to know the locks that may have lock competition problems in advance, and the implementation process is relatively complicated.
[0007] Moreover, in actual application scenarios, it is usually to monitor the above-mentioned locks obtained in advance that may have lock competition problems in real time, so that corresponding thread migration processing can be performed when lock competition problems occur. This continuous real-time monitoring process It will take up a lot of processing resources and affect the processing performance 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
  • Lock-based thread management method and thread management device
  • Lock-based thread management method and thread management device
  • Lock-based thread management method and thread management device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. 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.

[0028] The embodiment of the present invention can dynamically determine whether to start lock behavior monitoring, and dynamically determine whether to perform thread migration according to the lock competition degree information during the monitoring process, thereby overcoming the problems existing in the prior art.

[0029] Embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawing...

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 lock-based thread management method and a lock-based thread management device. The thread management method comprises the following steps: judging whether lock action monitoring needs to be implemented, and if so, obtaining first lock contention degree information; determining a thread to be migrated according to the first lock contention degree information; and migrating the thread to a determined target processor. As the technical means that whether lock action monitoring needs to be implemented is decided through dynamic judgment are adopted, the problem that system processing resources are occupied excessively when lock action monitoring is implemented continuously can be avoided, and therefore the processing performance of the system can not be greatly influenced in the process of lock-based thread management.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a lock-based thread management method and device. Background technique [0002] With the development of computer technology, multi-core or many-core architecture has become a mainstream trend in the current computing environment. However, the performance of the computer does not show a linear increase with the increase of the number of cores of the computer system, and sometimes the performance decreases with the increase of the number of cores. This phenomenon is called the kernel scalability problem. [0003] Among them, lock competition is one of the factors that limit the parallel scalability of the system on the multi-core architecture. Especially when lock oscillation occurs, the performance loss of the system is very large. The corresponding lock oscillation means that many threads compete for the same lock at the same time and do not release the CPU, resulting in the...

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/46
Inventor 刘仪阳
Owner HUAWEI TECH CO LTD