Data processing method, device, equipment and medium

A data processing and data technology, applied in the computer field, to improve the efficiency of lock control, avoid migration, and speed up the execution of critical sections

Active Publication Date: 2020-02-11
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF12 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of this specification provides a data processing method, device, equipment and medium to solve the technical problem of how to control the lock mechanism more effectively and efficiently

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
  • Data processing method, device, equipment and medium
  • Data processing method, device, equipment and medium
  • Data processing method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described The embodiments are only some of the embodiments of the present application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this specification without creative efforts shall fall within the protection scope of the present application.

[0077] In the prior art, the running process of the commonly used MCS lock is as follows: a thread has two variables info.next (pointer) and info.pending. Perform data interaction, read the lock data, and write its own data into the cache line of the lock; judge whether the lock is occupied according to the read lock data; if it is not occupied, thread...

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 data processing method, a device, equipment and a medium, and the method comprises the steps: carrying out the interaction of lock data and the thread dataof a to-be-locked thread through the shared cache of a processor when a locking request of the to-be-locked thread is received, and determining whether a lock is occupied or not according to the lockdata; if not, enabling the to-be-locked thread to obtain a lock; if yes, enabling the to-be-locked thread to obtain a lock when the target thread data occupying the lock thread meets a preset condition; and / or, when an unlocking request of a lock occupying thread is received, determining whether thread data written into a shared cache of a processor is changed when the lock occupying thread performs data interaction with a lock through the shared cache of the processor before the lock occupying thread occupies the lock; and if the thread data of the lock occupying thread is changed, changing the thread data of the lock occupying thread to unlock the lock occupying thread.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, equipment and medium. Background technique [0002] In the prior art, the memory uses a lock mechanism to control thread access, such as an MCS lock, and when a thread acquires a lock, it needs to exchange data with the lock, for example, a pending value needs to be exchanged. In the existing lock mechanism, when a thread exchanges data with a lock, it needs to first determine which level of cache the lock data to be exchanged is located in, such as L1 (first-level cache), L2 (second-level cache), and then go to Corresponding cache for data exchange. In addition, when the previous thread wants to unlock, it needs to wait for its own "pointer" data (info.next data) to be filled in by the next thread, and then change the pending value of the next thread, so that the previous thread can Unlocking, that is, the next thread can acqui...

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/54G06F9/48
CPCG06F9/4843G06F9/544
Inventor 马凌何昌华
Owner ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products