Method, system, and apparatus to improve performance of multi-threaded computer programs
AssigneeHewlett-Packard Development Company, L.P.
InventorsMark Streich, Salil Pradhan, Eric Caspole
Life of this patent
Estimating the term…
Abstract
A method, system, and apparatus for improving performance of multi-threaded computer programs that re-establishes the lock structure that enables access to a portion of the computer memory and thereby reduces contention for computer memory. The present invention analyzes the references to computer memory and re-structures the memory access lock structure and thereby improves the use of regions of computer memory that are found to be mutually exclusive.
Claims20
A computer implemented method for efficient access to computer memory, said computer memory being accessed by a first instruction and a second instruction generated from a computer readable medium encoded in a source program that executes on said computer, said method comprising:
- identifying a first memory region in said computer memory referenced by said first instruction;
- identifying a second memory region in said computer memory referenced by said second instruction;
- identifying a lock for said first and second memory regions;
- and
- re-structuring said lock into a first lock for said first memory region and a second lock for said second memory region, said first lock and said second lock replace said lock, thereby efficiently accessing said computer memory.
A lock re-structuring apparatus for efficient access to memory in a computer, said memory being accessed by a first instruction and a second instruction generated from a computer readable medium encoded in a source program that executes on said computer, said apparatus comprising:
- a first memory region in said memory referenced by said first instruction;
- a second memory region in said memory referenced by said second instruction;
- and
- a lock for said first and second memory regions being re-structured into a first lock for said first memory region and a second lock for said second memory region, said first lock and said second lock replace said lock, thereby efficiently accessing said memory.
An article of manufacture comprising a program storage medium having computer readable code embodied therein for efficient access to computer memory, said computer readable code including a first instruction and a second instruction that execute on said computer and that access said computer memory, said article of manufacture comprising:
- computer readable program code for identifying a first memory region in said computer memory referenced by said first instruction and a second memory region in said computer memory referenced by said second instruction;
- and
- computer readable program code for identifying a lock to said first and second memory regions and for re-structuring said lock into a first lock for said first memory region and a second lock for said second memory region, said first lock and said second lock replace said lock, thereby efficiently accessing said computer memory.
A computer readable memory device encoded with a data structure for efficient access to memory in a computer, said memory being accessed by a first instruction and a second instruction that execute on said computer, said computer readable memory device comprising:
- a first memory region being referenced by said first instruction;
- a second memory region being referenced by said second instruction;
- and
- a lock to said first and second memory regions being re-structured into a first lock for said first memory region and a second lock for said second memory region, said first lock and said second lock replace said lock, thereby efficiently accessing said computer memory.
Dependencies are inferred from the claim text.