# US 2008/0307138 A1 · Method and system for locking resources in a distributed environment

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

- Number: US 2008/0307138 A1
- Document ID: US20080307138A1
- Status: Published application
- Kind: A1
- Application number: 12/145,403
- Filed: 2008-06-24
- Published: 2008-12-11
- Earliest claimed: 2001-11-13
- Assignees: Microsoft Corporation
- Inventors: Jonathan S. Goldick
- Web page: https://patentgrep.com/patent/US20080307138A1

## CPC

- G06F 9/526: {Mutual exclusion algorithms}
- H04L 9/40: Network security protocols
- G06F 2209/522: Manager
- G06F 2209/523: Mode
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method and system that creates and maintains lock properties for a resource or object in a distributed environment. The lock properties provide other client computer systems limited availability to the locked resource. Limited availability relates to being able to only read, write or delete the resource, or any combination thereof. Additionally, these lock properties allow other client computer systems to simultaneously hold or share equivalent locks. Other lock properties relate to advisory or mandatory status for the lock. Advisory locks may be honored or ignored by other client computer systems.

## Claims

### Claim 1

A computer storage medium having stored thereon a locked resource accessed with a Distributed Authoring and Versioning (DAV) protocol message, wherein the DAV protocol is an extension of Hypertext Markup Language (HTTP), and wherein the locked resource comprises:
a data object to store object data; and
a lock object, wherein the lock object is associated with the data object, and wherein the lock object comprises information relating to a type of lock on the associated data object, and wherein the lock object further comprises a property that is of a noshare type.

### Claim 2 (depends on 1)

A computer storage medium as defined in claim 1, wherein the property is a noshareread type.

### Claim 3 (depends on 1)

A computer storage medium as defined in claim 1, wherein the property is a nosharedelete type.

### Claim 4 (depends on 1)

A computer storage medium as defined in claim 1, wherein the property is a nosharewrite type.

### Claim 5 (depends on 1)

A computer storage medium as defined in claim 1, wherein the lock object services a lock token request.

### Claim 6 (depends on 1)

A computer storage medium as defined in claim 1, wherein a services layer processes an access request for the data object.

### Claim 7

A method of locking a resource in a distributed environment communicating in a Distributed Authoring and Versioning (DAV) protocol, wherein the DAV protocol is an extension of Hypertext Markup Language (HTTP), the method comprising:
sending a request in the DAV protocol to access a resource, wherein the resource comprises a data object, and wherein the request originates from an application program;
processing the request;
causing the creation of a lock object having a predetermined type, wherein the predetermined type is one from the group consisting of a nosharewrite, a noshareread, and a nosharedelete;
receiving a lock token upon the creation of the lock object; and
accessing the resource.

### Claim 8 (depends on 7)

A method as defined in claim 7, wherein the application program is a client application program operating on a client system.

### Claim 9 (depends on 7)

A method as defined in claim 7, wherein the application program is part of a server system.

### Claim 10 (depends on 7)

A method as defined in claim 7, wherein the application program causes the creation of the lock object.

### Claim 11 (depends on 7)

A method as defined in claim 7, wherein a services layer creates the lock object and associates the lock object with the data object.

### Claim 12 (depends on 7)

A method as defined in claim 7, wherein the act of processing the request comprises:
determining whether the resource is locked by another application program; and
determining the type of access requested.

### Claim 13 (depends on 7)

A method as defined in claim 7, wherein the lock is advisory.

### Claim 14 (depends on 7)

A method as defined in claim 7, wherein a plurality of application programs can cause the creation of a lock on the resource.

### Claim 15

A system for creating and managing a lock object in a distributed environment communicating in a Distributed Authoring and Versioning (DAV) protocol, wherein the DAV protocol is an extension of Hypertext Markup Language (HTTP), the computer system comprising:
an application program, the application program operable to send a request in the DAV protocol to access a data object; and
a services layer, the services layer operable to determine a type of access requested for the data object and to determine if the data object is associated with the lock object, wherein the lock object comprises a locktype property.

### Claim 16 (depends on 15)

A system as defined in claim 15, wherein the services layer is further operable to:
determine whether access may be given for the data object for the type of access requested;
if access may be given for the type of access requested, returning a lock token; and
if access may not be given for the type of access requested, denying access.

### Claim 17 (depends on 15)

A system as defined in claim 15, wherein the locktype property is a nosharewrite lock.

### Claim 18 (depends on 15)

A system as defined in claim 15, wherein the locktype property is a nosharedelete lock.

### Claim 19 (depends on 15)

A system as defined in claim 15, wherein the locktype property is a noshareread lock.

### Claim 20 (depends on 15)

A system as defined in claim 15, wherein the locktype property is an advisory lock.
