Distributed complex lock realization method, terminal, server and computer readable storage medium
An implementation method and distributed technology, applied in the field of communication, can solve problems such as the inability of existing solutions to meet business requirements
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0069] Such as image 3 As shown, a method for implementing a distributed complex lock provided in the first embodiment of the present invention, the method includes steps:
[0070] 30. The terminal sends a complex lock acquisition request containing multiple competing resources to the server.
[0071] 31. The server receives the complex lock acquisition request sent by the terminal, and splits the complex lock acquisition request containing multiple competing resources into multiple lock obtaining requests containing a single competing resource.
[0072] In this embodiment, by splitting the complex lock into multiple single locks, the synchronization operation on multiple competing resources can be satisfied.
[0073] 32. The server sends all lock acquisition success responses containing a single competing resource to the terminal.
[0074] Please refer to Figure 4 As shown, in this embodiment, step 32 specifically includes:
[0075] 320. Attempt to acquire one of multip...
no. 2 example
[0093] refer to Figure 6 , Figure 6 A terminal provided by the second embodiment of the present invention, the terminal 40 includes a memory 41, a processor 42, and an implementation program of a distributed complex lock stored in the memory 41 and operable on the processor 42. When the implementation program of the distributed complex lock is executed by the processor, the following steps are realized:
[0094] Send a complex lock acquisition request to the server with multiple competing resources;
[0095] Receive all locks containing a single competing resource from the server and acquire a successful response, and acquire all locks containing a single competing resource;
[0096] Wherein, the server receives the complex lock acquisition request sent by the terminal, splits the complex lock acquisition request containing multiple competing resources into multiple lock acquisition requests containing a single competing resource; sends all the lock acquiring requests cont...
no. 3 example
[0115] Such as Figure 7 as shown, Figure 7A server provided by the third embodiment of the present invention, the server 50 includes a memory 51, a processor 52, and an implementation program of a distributed complex lock stored on the memory 51 and running on the processor 52 , when the implementation program of the distributed complex lock is executed by the processor 52, the following steps are implemented:
[0116] Receive a complex lock acquisition request sent by the terminal that contains multiple competing resources;
[0117] Split the received complex lock acquisition request containing multiple competing resources into multiple lock acquisition requests containing a single competing resource;
[0118] In this embodiment, by splitting the complex lock into multiple single locks, the synchronization operation on multiple competing resources can be satisfied.
[0119] All lock acquisition success responses containing a single competing resource are sent to the term...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com