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

Service processing method and device based on distributed lock

A distributed lock and business processing technology, applied in multi-programming devices, electrical digital data processing, special data processing applications, etc., can solve problems such as lock waiting, and achieve the effect of reducing lock waiting and improving processing efficiency

Pending Publication Date: 2021-12-17
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will cause lock waiting, and the subsequent process is that two threads fail at the same time, and wait for a random event to start again

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
  • Service processing method and device based on distributed lock
  • Service processing method and device based on distributed lock
  • Service processing method and device based on distributed lock

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] 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.

[0041] Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware ...

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 service processing method and device based on a distributed lock, and the method comprises the steps: obtaining the distributed lock during the service processing, wherein the data corresponding to the distributed lock comprises a bitmap, the bitmap comprises a plurality of bits, and each bit corresponds to one resource; and judging whether the numerical value of each resource required by the service on the corresponding bit on the bitmap is a first value or not, if so, updating the numerical value to a second value and then releasing the distributed lock, and if not, directly releasing the distributed lock. According to the invention, the situation of lock waiting during interlocking can be reduced, and the service processing efficiency can be improved.

Description

technical field [0001] The present invention relates to the technical field of distributed locks, in particular to a business processing method and device based on distributed locks. Background technique [0002] With the development of Internet technology, although distributed technology has brought many benefits, it also brings more technical challenges. Distributed locks are one of the solutions used to solve distributed consistency, which ensures the sequential modification of the same resource in a distributed environment. But what comes with it is the loss of performance, especially when the amount of concurrency is very large. In some business scenarios, synchronous access to multiple resources will be encountered, which requires the use of interlocking. The interlocking solution is to set multiple distributed locks at the same time, and the performance problem will be very bad. For example, the underlying principle of Redis interlocking is to establish a distribut...

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): G06F16/23G06F9/52
CPCG06F16/2343G06F9/526
Inventor 戴进敏谭汉清佘俊胜王稳
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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