# US 2002/0059503 A1 · Protocol for coordinating the distribution of shared memory

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

- Number: US 2002/0059503 A1
- Document ID: US20020059503A1
- Status: Published application
- Kind: A1
- Application number: 10/050,774
- Filed: 2002-01-18
- Published: 2002-05-16
- Earliest claimed: 1999-02-04
- Assignees: Sun Microsystems, Inc.
- Inventors: Shaun Dennie
- Web page: https://patentgrep.com/patent/US20020059503A1

## CPC

- G06F 9/5016: {the resource being the memory}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and articles of manufacture consistent with the present invention coordinate distribution of shared memory to threads of control executing in a program by using a cooperative synchronization protocol. The protocol serializes access to memory by competing threads requesting assignment of memory space, while allowing competing threads that have already been assigned memory space, to share access to the memory. A designated area of memory assigns the memory to requesting threads. The protocol is an application level entity and therefore does access the operating system to serialize the memory allocation process.

## Claims

### Claim 1

A method for allocating blocks of a shared memory in a data processing system, the method comprising:
receiving a memory allocation request;
determining whether access to the shared memory is permitted for purposes of the memory allocation request;
identifying a next available memory block in response to the memory allocation request based on a determination that access to the shared memory is permitted for purposes of the memory allocation request; and
designating the next available memory block in response to the request.

### Claim 2 (depends on 1)

The method of claim 1 wherein identifying a next available memory block in response to the memory allocation request based on a determination that access to the shared memory is permitted for purposes of the memory allocation request includes:
accessing an area of memory designating a location of a next available memory block.

### Claim 3 (depends on 1)

The method of claim 1 wherein designating the next available memory block in response to the request includes:
updating an area of memory with an address of an allocated memory block.

### Claim 4

A memory allocating system, comprising;
a shared memory;
a protocol specifying a method for allocating blocks of the shared memory; and
a processor performing the method for allocating blocks of the shared memory by receiving a memory allocation request;
determining whether access to the shared memory is permitted for purposes of the memory allocation request;
identifying a next available memory block in response to the memory allocation request and based on a determination that access to the shared memory is permitted for purposes of the memory allocation request; and
designating the next available memory block in response to the request.

### Claim 5 (depends on 4)

The system of claim 4, wherein determining whether access to the shared memory is permitted for purposes of the memory allocation request includes:
monitoring an indicator that indicates whether the memory allocation request is permitted.

### Claim 6 (depends on 4)

The system of claim 4 wherein identifying a next available memory block in response to the memory allocation request and based on a determination that access to the shared memory is permitted for purposes of the memory allocation request includes:
accessing an area of memory designating a location of a next available memory block.

### Claim 7 (depends on 4)

The method of claim 4 wherein designating the next available memory block in response to the request includes:
updating an area of memory with an address of an allocated memory block.

### Claim 8

A computer-readable medium containing computer-readable instructions for performing a method on a data processing system for allocating blocks of a shared memory, the method comprising:
receiving a memory allocation request;
determining whether access to the shared memory is permitted for purposes of the memory allocation request;
identifying a next available memory block in response to the memory allocation request and based on a determination that access to the shared memory is permitted for purposes of the memory allocation request; and
designating the next available memory block in response to the request.

### Claim 9 (depends on 8)

The computer-readable medium of claim 8 wherein determining whether access to the shared memory is permitted for purposes of the memory allocation request includes:
monitoring an indicator that indicates whether the memory allocation request is permitted.

### Claim 10 (depends on 8)

The computer-readable medium of claim 8 wherein identifying a next available memory block in response to the memory allocation request and based on a determination that access to the shared memory is permitted for purposes of the memory allocation request includes:
accessing an area of memory designating a location of a next available memory block.

### Claim 11 (depends on 8)

The computer-readable medium of claim 8 wherein designating the next available memory block in response to the request includes:
updating an area of memory with an address of an allocated memory block.

### Claim 12

A method for allocating a memory by assigning blocks of a designated size in a data processing system, the method comprising:
determining whether a request to secure access to a block of memory from an executing thread is permitted;
accessing a memory allocation table to determine an address for a next available memory block;
designating the next available memory block for the executing thread in response to the request;
updating the memory allocation table to reflect the designation of the next available memory block for the executing thread in response to the request; and
coordinating shared access for all executing threads to the memory.

### Claim 13 (depends on 12)

The method of claim 12 wherein designating the next available memory block for the executing thread in response to the request includes:
providing the address for a next available memory block to the executing thread.

### Claim 14 (depends on 12)

The method of claim 12 wherein updating the memory allocation table to reflect the designation of the next available memory block for the executing thread in response to the request includes:
identifying an address for a new next available memory block.

### Claim 15

A computer-readable medium containing instructions for performing a method for allocating shared memory among threads of control in a data processing system, the method comprising:
determining whether a request to secure for access to a block of memory from an executing thread is permitted;
accessing a memory allocation table to determine an address for a next available memory block;
designating the next available memory block for the executing thread in response to the request;
updating the memory allocation table to reflect the designation of the next available memory block for the executing thread in response to the request; and
coordinating shared access for all executing threads to the memory.

### Claim 16

A system for coordinating allocation of a memory by assigning blocks of memory in a data processing system, the system comprising;
an area of the memory designated to coordinate assignment of the memory to a thread requiring access to memory; and
a protocol for serializing a thread accessing memory based on information reflecting usage of the memory.
