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

Method, device and multi-core processor system for realizing self-adaptive lock

An adaptive, processor-core technology, applied in the computer field, can solve problems such as application program performance impact and fierce lock competition, and achieve the effects of avoiding lock jitter, reducing overhead, and improving performance

Inactive Publication Date: 2012-07-11
HUAWEI TECH CO LTD +1
View PDF3 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As the number of cores increases and the number of parallel threads increases, the lock competition becomes more and more intense, so that it will have a greater impact on the performance of the application.

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
  • Method, device and multi-core processor system for realizing self-adaptive lock
  • Method, device and multi-core processor system for realizing self-adaptive lock
  • Method, device and multi-core processor system for realizing self-adaptive lock

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but 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 creative efforts fall within the protection scope of the present invention.

[0021] figure 1 The data structure of the adaptive lock according to the embodiment of the present invention is shown in , which includes information such as a lock state identifier, a requester counter, a set of energy-saving state requesters, and a protection lock of the set of energy-saving state requesters. Usually, the requester counter is a member variable in the adaptive lock data structure, which is used to represent the number of threads compe...

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 method, device and multi-core processor system for realizing a self-adaptive lock, wherein the method for realizing the self-adaptive lock comprises the following steps of: when a new first thread attempts to acquire the self-adaptive lock, if the self-adaptive lock is idle, enabling the first thread to acquire the self-adaptive lock, and otherwise, enabling the first thread to enter into a self-rotation state or an energy-saving state according to the competition fierce degree of the self-adaptive lock; when the first thread is in the energy-saving state, enabling the first thread to wait for being awaken to enter into the self-rotation state, or when the first thread is in the self-rotation state, enabling the first thread to compete for the self-adaptive lock till the first thread gets the self-adaptive lock by competition and the operation of sharing resources protected by the self-adaptive lock is completed, and releasing the self-adaptive lock; and when the self-adaptive lock is released, if the thread is in the energy-saving state, awaking another thread in the energy-saving state, and enabling the thread to enter into the self-rotation state so as to enable other threads which are in the self-rotation state to compete for the self-adaptive lock together.

Description

technical field [0001] Embodiments of the present invention relate to the computer field, and more specifically, relate to a method and device for realizing an adaptive lock and a multi-core processor system. Background technique [0002] With the continuous development of chip technology, multi-processor core systems have become more and more popular. In order to maximize the potential of multiple processor cores, applications usually run in parallel using multithreading. [0003] Most of today's computer systems with architectures, such as SMP (Symmetrical Multi-Processing Architecture, Symmetrical Multi-Processing Architecture), NUMA (Non Uniform Memory Access Architecture, Non-Uniform Memory Access Architecture), provide a unified physical memory address space. Therefore, multiple applications or threads can access (read or write) the same memory address through shared variables. However, there must be competition for parallel access to the same memory address. For ex...

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/38
CPCG06F9/46G06F9/38G06F9/526
Inventor 秦岭陈渝崔岩吴瑾
Owner HUAWEI TECH 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