# US 2010/0161573 A1 · Time Limited Lock Ownership

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2010/0161573 A1
- Document ID: US20100161573A1
- Status: Published application
- Kind: A1
- Application number: 12/340,569
- Filed: 2008-12-19
- Published: 2010-06-24
- Earliest claimed: 2008-12-19
- Assignees: Oracle International Corporation
- Inventors: Wilson Chan; Angelo Pruscino; Michael Zoll
- Web page: https://patentgrep.com/patent/US20100161573A1

## CPC

- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 16/2343: {Locking methods, e.g. distributed locking or locking implementation details}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described herein are techniques for time limited lock ownership. In one embodiment, in response to receiving a request for a lock on a shared resource, the lock is granted and a lock lease period associated with the lock is established. Then, in response to determining that the lock lease period has expired, one or more lock lease expiration procedures are performed. In many cases, the time limited lock ownership may prevent system hanging, timely detect system deadlocks, and/or improve overall performance of the database.

## Claims

### Claim 1

A computer-implemented method, comprising:
requesting a lock on a shared resource;
in response to receiving a request:
granting said lock on said shared resource to a lock holder, and establishing a lock lease period associated with said lock;
determining that the lock lease period has expired; and
in response to determining that the lock lease period has expired, performing one or more lock lease expiration procedures.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the lock lease period associated with said lock is established based on information included in the request, information about the lock holder, and information about the shared resource.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the establishing the lock lease period associated with said lock is performed by the lock holder itself.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the establishing the lock lease period associated with said lock is performed by an agent servicing the lock requesting process.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the establishing the lock lease period associated with said lock is performed by a distributed lock manager (DLM).

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein determining that the lock lease period has expired and performing one or more lock lease expiration procedures in response to determining that the lock lease period has expired are carried out by the lock holder itself.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the performing one or more lock lease expiration procedures comprises increasing the lock lease period associated with the lock.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the performing one or more lock lease expiration procedures comprises terminating the grant of the lock on the shared resource to the lock holder.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the performing one or more lock lease expiration procedures comprises collecting and storing diagnostic data about the lock holder, the shared resource or other shared resources.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the performing one or more lock lease expiration procedures comprises renewing the lease and establishing a new lease lock period associated with the lock.

### Claim 11 (depends on 1)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 1.

### Claim 12 (depends on 2)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 2.

### Claim 13 (depends on 3)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 3.

### Claim 14 (depends on 4)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 4.

### Claim 15 (depends on 5)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 5.

### Claim 16 (depends on 6)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 6.

### Claim 17 (depends on 7)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 7.

### Claim 18 (depends on 8)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 8.

### Claim 19 (depends on 9)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 9.

### Claim 20 (depends on 10)

A computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, causes the one or more processors to perform the method recited in claim 10.
