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

Processing method and device for executing distributed lock operation

A technology of distributed locks and processing methods, applied in the computer field, can solve problems such as cumbersome and bloated codes, and achieve the effect of reducing code redundancy and improving efficiency

Active Publication Date: 2022-03-18
深圳平安医疗健康科技服务有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the present invention provides a processing method and device for performing distributed lock operations, the main purpose of which is to add distributed locks in the code file through the operation mode of section jump, so as to solve the problem of manually adding distributed locks during the development process by technicians. Type locks make the code cumbersome and bloated, thereby reducing code redundancy and improving the efficiency of code maintenance

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
  • Processing method and device for executing distributed lock operation
  • Processing method and device for executing distributed lock operation
  • Processing method and device for executing distributed lock operation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0051] As mentioned in the background technology, at present, the existing technology operates by putting lock-related operations and business logic processing in one system. Although it is intuitively clear and easy to understand, there are two problems after coupling. On the one hand, code execution If the lock release operation has not been executed during the process, if the server crashes at this time, the program will be inter...

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 processing method and device for performing distributed lock operations, which relate to the field of computer technology, and the main purpose is to add distributed locks into code files through the operation mode of cutting plane jump, so as to solve the problem of manual operation of technicians in the development process. Adding distributed locks makes the code cumbersome and bloated, thereby reducing code redundancy and improving the efficiency of code maintenance. The method includes: when running the project object model file, detecting whether there is a preset annotation identifier; if the preset annotation identifier is detected, then analyzing whether the configuration item configured in the project configuration file corresponding to the preset annotation identifier is Satisfy the preset distributed lock execution condition; if satisfied, instruct the current thread to jump to the aspect configured in the project configuration file, and execute the distributed lock operation by triggering the initiator configured in the project configuration file. The present invention is applicable to the process of performing distributed lock operation.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a processing method and device for executing distributed lock operations. Background technique [0002] At present, when deploying on a cluster or a stand-alone machine, the distributed lock in the project is implemented through redis or database, and the lock is manually acquired, processed logic, released, and released under abnormal conditions in the method body. However, in the process of implementing the code, more attention should be paid to the logic code. Frequent acquisition and release of locks will make the code cumbersome and bloated, and if you forget to release the lock, the current thread will always occupy resources, and other threads If the resource cannot be obtained, the code cannot continue, which greatly reduces the efficiency of execution. [0003] At present, the existing technology operates by putting lock-related operations and business logic processin...

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): G06F8/41G06F16/21
CPCG06F8/458G06F16/21
Inventor 宋瑞环
Owner 深圳平安医疗健康科技服务有限公司
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