# US 2021/0342202 A1 · Critical Section Speedup Using Help-Enabled Locks

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

- Number: US 2021/0342202 A1
- Document ID: US20210342202A1
- Status: Published application
- Kind: A1
- Application number: 17/378,488
- Filed: 2021-07-16
- Published: 2021-11-04
- Earliest claimed: 2018-10-18
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Yosef Lev; Victor M. Luchangco; David Dice; Alex Kogan; Timothy L. Harris; Pantea Zardoshti
- Web page: https://patentgrep.com/patent/US20210342202A1

## CPC

- G06F 9/526: {Mutual exclusion algorithms}
- G06F 9/524: {Deadlock detection or avoidance}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A first data accessor acquires a lock associated with a critical section. The first data accessor initiates a help session associated with a first operation of the critical section. In the help session, a second data accessor (which has not acquired the first lock) performs one or more sub-operations of the first operation. The first data accessor releases the lock after at least the first operation has been completed.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

A computer-implemented method, comprising:
acquiring, by a first data accessor of a plurality of data accessors, a first lock associated with a first critical section, wherein the first critical section comprises one or more operations including a first operation;
determining, by the first data accessor, that a first help session associated with the first critical section has been initiated by a second data accessor of the plurality of data accessors, wherein the second data accessor holds a second lock associated with the first critical section; and
implementing, by the first data accessor, in response at least in part to said determining, at least one sub-operation of the first operation.

### Claim 22 (depends on 21)

The computer-implemented method as recited in claim 21, further comprising:
incrementing, by the first data accessor, after determining that the first help session is in progress, and prior to completing the sub-operation, a counter of helpers associated with the first critical section; and
determining, by the second data accessor, using the counter of helpers, whether one or more sub-operations of the first operation is in progress.

### Claim 23 (depends on 21)

The computer-implemented method as recited in claim 21, further comprising:
obtaining, from the second lock by the first data accessor, an indication of the sub-operation.

### Claim 24 (depends on 21)

The computer-implemented method as recited in claim 21, wherein the first lock is embedded within the second lock.

### Claim 25 (depends on 21)

The computer-implemented method as recited in claim 21, further comprising:
releasing the first lock by the first data accessor prior to implementing the sub-operation; and
implementing, by a third data accessor, another sub-operation of the first operation after the third data accessor acquires the first lock.

### Claim 26 (depends on 21)

The computer-implemented method as recited in claim 21, wherein the first operation comprises accessing a first data object, the computer-implemented method further comprising:
obtaining, by the first data accessor, an indication of an iterator, wherein the iterator is used by the first data accessor to identify a portion of the first data object to be accessed to perform the sub-operation, and wherein the indication of the iterator is stored by the second data accessor.

### Claim 27 (depends on 21)

The computer-implemented method as recited in claim 21, further comprising:
determining, by a third data accessor during the first help session, based at least in part on a helper count limit set by the second data accessor, that the third data accessor is not to perform a sub-operation of the first operation.

### Claim 28

A system, comprising:
one or more computing devices;
wherein the one or more computing devices include instructions that upon execution on or across the one or more computing devices cause a first data accessor of a plurality of data accessors to:
acquire a first lock associated with a first critical section, wherein the first critical section comprises one or more operations including a first operation;
determine that a first help session associated with the first critical section has been initiated by a second data accessor of the plurality of data accessors, wherein the second data accessor holds a second lock associated with the first critical section; and
implement, in response at least in part to determining that the first help session has been initiated, at least one sub-operation of the first operation.

### Claim 29 (depends on 28)

The system as recited in claim 28, wherein the one or more computing devices include further instructions that upon execution on or across the one or more computing devices further cause the first data accessor to:
increase, after determining that the first help session is in progress, and prior to completing the sub-operation, a counter of helpers associated with the first critical section, wherein the counter is used by the second data accessor to determine whether one or more sub-operations of the first operation is in progress.

### Claim 30 (depends on 28)

The system as recited in claim 28, wherein the one or more computing devices include further instructions that upon execution on or across the one or more computing devices further cause the first data accessor to:
obtain, from the second lock, an indication of the sub-operation.

### Claim 31 (depends on 28)

The system as recited in claim 28, wherein the first lock is embedded within the second lock.

### Claim 32 (depends on 28)

The system as recited in claim 28, wherein the one or more computing devices include further instructions that upon execution on or across the one or more computing devices further cause:
the first data accessor to release the first lock prior to implementing the sub-operation; and
a third data accessor to implement another sub-operation of the first operation after the third data accessor acquires the first lock.

### Claim 33 (depends on 28)

The system as recited in claim 28, wherein the first operation comprises accessing a first data object, and wherein the one or more computing devices include further instructions that upon execution on or across the one or more computing devices further cause the first data accessor to:
obtain an indication of an iterator, wherein the iterator is used by the first data accessor to identify a portion of the first data object to be accessed to perform the sub-operation, and wherein the indication of the iterator is stored by the second data accessor.

### Claim 34 (depends on 28)

The system as recited in claim 28, wherein the one or more computing devices include further instructions that upon execution on or across the one or more computing devices further cause a third data accessor of the plurality of data accessors to:
determine, during the first help session, based at least in part on a helper count limit set by the second data accessor, that the third data accessor is not to perform a sub-operation of the first operation.

### Claim 35

One or more non-transitory computer-accessible storage media storing program instructions that when executed on or across one or more processors cause a first data accessor of a plurality of data accessors to:
acquire a first lock associated with a first critical section, wherein the first critical section comprises one or more operations including a first operation;
determine that a first help session associated with the first critical section has been initiated by a second data accessor of the plurality of data accessors, wherein the second data accessor holds a second lock associated with the first critical section; and
implement, in response at least in part to determining that the first help session has been initiated, at least one sub-operation of the first operation.

### Claim 36 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, storing further program instructions that when executed on or across the one or more processors further cause the first data accessor to:
increase, after determining that the first help session is in progress, and prior to completing the sub-operation, a counter of helpers associated with the first critical section, and wherein the counter is used by the second data accessor to determine whether one or more sub-operations of the first operation is in progress.

### Claim 37 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, storing further program instructions that when executed on or across the one or more processors further cause the first data accessor to:
obtain, from the second lock, an indication of the sub-operation.

### Claim 38 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, wherein the first lock is embedded within the second lock.

### Claim 39 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, storing further program instructions that when executed on or across the one or more processors further cause:
the first data accessor to release the first lock prior to implementing the sub-operation; and
a third data accessor to implement another sub-operation of the first operation after the third data accessor acquires the first lock.

### Claim 40 (depends on 35)

The one or more non-transitory computer-accessible storage media as recited in claim 35, wherein the first operation comprises accessing a first data object, the one or more non-transitory computer-accessible storage media storing further program instructions that when executed on or across the one or more processors further cause the first data accessor to:
obtain an indication of an iterator, wherein the iterator is used by the first data accessor to identify a portion of the first data object to be accessed to perform the sub-operation, and wherein the indication of the iterator is stored by the second data accessor.
