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

Critical resource access method and device, computer equipment and readable storage medium

A critical resource and memory access technology, applied in the field of access to critical resources, computer equipment and computer-readable storage media, can solve problems such as performance degradation and multiple computing resources, and achieve the effects of reducing impact, saving computing resources, and reducing the number of operations

Pending Publication Date: 2021-02-02
HUAWEI TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The operation of competing locks requires a lot of computing resources. The existing methods of accessing critical resources are prone to generate a large number of competing lock operations, which consume a lot of computing resources, especially for advanced systems with low single-core processing capabilities and a large number of processor cores. For the processor of Advanced RISC Machine (ARM) architecture, the existing critical resource access method will greatly reduce its performance

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
  • Critical resource access method and device, computer equipment and readable storage medium
  • Critical resource access method and device, computer equipment and readable storage medium
  • Critical resource access method and device, computer equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Embodiments of the present application are described below in conjunction with the accompanying drawings.

[0051] With the development of chip technology, computer equipment with multi-processor cores has become more and more popular. In order to maximize the potential of multi-processor cores, applications usually run in parallel in a multi-threaded manner. However, some tasks require For the execution of mutual exclusion, a common practice is to set the same lock for multiple tasks that require mutual exclusion, and the threads that compete for the lock can perform their tasks. In the following, an example is introduced in which the tasks that need to be executed with mutual exclusion are tasks that access the same critical resource.

[0052] Most of the multi-processor core computer devices now provide shared resources for multi-threading, such as SMP (symmetrical multi-processing architecture, symmetric multi-processing architecture), NUMA (non uniform memory acces...

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 embodiment of the invention discloses a critical resource access method and device, computer equipment and a readable storage medium, which are beneficial to reducing the operation quantity of a thread competition lock, saving computing resources and improving the performance of an ARM architecture processor. The critical resource access method comprises the steps of: selecting a first threadfrom a first thread and a second thread to compete for a target lock, and a first task to be executed by the first thread and a second task to be executed by the second thread correspond to the targetlock; and competing for the target lock based on the first thread to enable the first thread to execute the first task and replace the second thread to execute the second task.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a method and device for accessing critical resources, computer equipment, and a computer-readable storage medium. Background technique [0002] With the development of chip technology, multi-core processors have become more and more popular. In order to maximize the potential of multi-core processors, applications usually run in parallel in a multi-threaded manner. [0003] Some shared resources can only be used by one thread at a time, and such shared resources are called critical resources. In order to avoid conflicts, existing technologies usually set locks for critical resources. Multiple threads to access the same critical resource need to compete for the lock of the critical resource. Only the threads that compete for the lock can execute the task of accessing the critical resource. The thread of the lock needs to compete for the lock again when the lock is...

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 Applications(China)
IPC IPC(8): G06F9/52G06F9/50G06F12/0813
CPCG06F9/526G06F9/5016G06F12/0813G06F9/4881G06F9/5033
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