Unlock instant, AI-driven research and patent intelligence for your innovation.

Distributed lock implementation method and device, equipment and storage medium

A technology of distributed locks and implementation methods, applied in the field of artificial intelligence, can solve problems such as abnormal business use, poor user experience, and chaotic business processes, and achieve the effects of ensuring normal order execution, enhancing flexibility, and ensuring normal use

Pending Publication Date: 2022-05-31
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If it is not handled properly, it will cause confusion in the business process, make the business unusable, and bring a very bad experience to users

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
  • Distributed lock implementation method and device, equipment and storage medium
  • Distributed lock implementation method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In the AI ​​business, since the microservices are implemented based on the JAVA language, most of the communication uses HTTP communication, and some resources are limited and can only be used by one service at the same time. Before accessing these restricted services or resources, it is necessary to ensure that this resource is not used by other services. Based on this, the present invention provides a method for implementing distributed locks.

[0036] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the p...

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 distributed lock implementation method and device, equipment and a storage medium. The method comprises the steps that a table for storing lock information is established in a database of an AI resource management platform; the table comprises a service name field; creating a unique index on a service name field of the table; querying whether data inserted corresponding to the to-be-accessed service exists in a table or not; if not, directly locking; and if yes, waiting to release the lock. According to the method, the existing capability of the database is completely utilized, the execution process in the service of the AI resource management platform is limited, mutual exclusion is simply realized when the service accesses the shared resource, the normal sequence execution of the service process is ensured, the execution disorder of the service is avoided, the flexibility of the system is enhanced, the stability of the service is favorably improved, and the user experience is improved. Therefore, the normal use of the service system is ensured.

Description

technical field [0001] The present invention relates to the technical field of artificial intelligence, and in particular, to an implementation method, device, device and storage medium of a distributed lock. Background technique [0002] For training tasks in artificial intelligence (AI) scenarios, services often access the same resource at the same time, so there is competition between services. Due to the large amount of concurrent business in AI scenarios, the competition between services is very fierce. If it is not handled properly, it will cause confusion in the business process, so that the business cannot be used normally, and it will bring a very bad experience to users. [0003] Therefore, how to mutually exclusive when accessing shared resources between services is a technical problem to be solved urgently by those skilled in the art. SUMMARY OF THE INVENTION [0004] In view of this, the purpose of the present invention is to provide a method, device, device...

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): G06F16/22G06F16/2458G06F16/27G06F16/28
CPCG06F16/2282G06F16/2228G06F16/27G06F16/284G06F16/2471
Inventor 徐如庆
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD