Patent ID: 7765360

Claim:
A computer program product comprising a tangible computer useable storage medium having a computer readable program stored thereon, wherein the computer readable program, when executed on a computing device, causes the computing device to: process a software cache lookup instruction in a program; perform a software cache lookup operation; determine if the software cache lookup operation results in a cache miss; initiate, by a cache miss handler, a retrieval of data from a backing store in response to results of the software cache lookup operation resulting in a cache miss; and branch, by the cache miss handler, execution to an independent subroutine that executes while execution of the program waits for retrieval of the data from the backing store, wherein: the independent subroutine is compiled into a separate subroutine that is stored in a known address location, the known address location is passed into the cache miss handler as a parameter to thereby cause the cache miss handler to execute the independent subroutine at the known address location after initiating retrieval of data from the backing store, the computer readable program causes the computing device to initiate a retrieval of data from a backing store in a first thread of execution and branch execution to an independent subroutine in a second thread of execution, useful work is performed during cache miss handling by performing a thread switch operation between the first and second threads, and the independent subroutine comprises a code sequence that does not cause another cache miss due to the independent subroutine being a portion of code that does not reference a portion of code associated with the software cache lookup instruction, does not reference variables that are common between the independent subroutine and the portion of code associated with the software cache lookup instruction, and does not reference aliases of variables used in other portions of code.