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

Distributed lock implementation method and device

A technology of distributed locks and implementation methods, applied in the computer field, can solve the problems of reduced server performance and waste of resources, and achieve the effect of saving resources and improving server performance

Active Publication Date: 2019-09-27
NEUSOFT CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the ensuing problem is that if multiple clients send the same business request to the server at the same time, such as sending a heartbeat packet, the server cannot determine which client the business request comes from, which may cause the problem of repeated business execution, resulting in Waste of resources, resulting in reduced server performance

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
  • Distributed lock implementation method and device
  • Distributed lock implementation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0013] The method and device for implementing distributed locks according to the embodiments of the present invention will be described below with reference to the accompanying drawings.

[0014] figure 1 It is a flowchart of a distributed lock implementation method according to an embodiment of the present invention.

[0015] Such as figure 1 As shown, the distributed lock implementation method may include:

[0016] S1, receiving the same service request from multiple clients within the same time period.

[0017] Among them,...

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 realization method and apparatus. The method comprises the steps of S1, receiving same business requests from a plurality of clients within a same time period; S2, running script files corresponding to the business requests and generating corresponding business identifiers; and S3, according to the business identifiers, determining the clients executing businesses corresponding to the business requests. According to the distributed lock realization method and apparatus provided by embodiments of the invention, the same business requests from the clients are received within the same time period; the script files corresponding to the business requests are run and the corresponding business identifiers are generated; and the clients executing the businesses corresponding to the business requests are determined according to the business identifiers, so that the problem of repeated execution of the same businesses from the clients can be avoided, the resources are saved, and the server performance is improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for realizing distributed locks. Background technique [0002] At present, instant messaging software supports multiple clients to log in at the same time. For example, QQ software can support mobile phone client, tablet computer client, and PC client to log in at the same time, which is convenient for users to use. But the ensuing problem is that if multiple clients send the same business request to the server at the same time, such as sending a heartbeat packet, the server cannot determine which client the business request comes from, which may cause the problem of repeated business execution, resulting in This wastes resources and degrades server performance. Contents of the invention [0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. Therefore, an object of the present invention...

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): G06F9/54
Inventor 赵研
Owner NEUSOFT CORP