Method and system for providing access to a shared resource utilizing selective locking
First Claim
1. A method of providing access to a shared resource within a data processing system, said method comprising:
- receiving a request to perform a resource access operation on said shared resource;
invoking a first routine to perform said resource access operation in response to said receiving, wherein said first routine comprises a dereference instruction to dereference a pointer to memory associated with said shared resource;
detecting a data processing system exception generated in response to invoking said first routine;
invoking a second routine to perform said resource access operation in response to said detecting, wherein said second routine comprises a lock acquisition instruction to acquire a global lock associated with said shared resource prior to a performance of said resource access operation and a lock release instruction to release said global lock subsequent to said performance of said resource access operation.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system for providing access to a shared resource utilizing selective locking are disclosed. According to one embodiment, a method is provided comprising receiving a request to perform a resource access operation on a shared resource, invoking a first routine to perform the resource access operation, detecting a data processing system exception generated in response to invoking the first routine, and invoking a second routine to perform the resource access operation in response to such detecting. In the described embodiment, the first routine comprises a dereference instruction to dereference a pointer to memory associated with the shared resource, the second routine comprises a lock acquisition instruction to acquire a global lock associated with the shared resource prior to a performance of the resource access operation and a lock release instruction to release the global lock once resource access operation has been performed.
-
Citations
20 Claims
-
1. A method of providing access to a shared resource within a data processing system, said method comprising:
-
receiving a request to perform a resource access operation on said shared resource;
invoking a first routine to perform said resource access operation in response to said receiving, wherein said first routine comprises a dereference instruction to dereference a pointer to memory associated with said shared resource;
detecting a data processing system exception generated in response to invoking said first routine;
invoking a second routine to perform said resource access operation in response to said detecting, wherein said second routine comprises a lock acquisition instruction to acquire a global lock associated with said shared resource prior to a performance of said resource access operation and a lock release instruction to release said global lock subsequent to said performance of said resource access operation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An apparatus configured to provide access to a shared resource comprising:
-
means for receiving a request to perform a resource access operation on said shared resource;
means for invoking a first routine to perform said resource access operation in response to a reception of said request, wherein said first routine comprises a dereference instruction to dereference a pointer to memory associated with said shared resource;
means for detecting a data processing system exception generated in response to an invocation of said first routine;
means for invoking a second routine to perform said resource access operation in response to a detection of said data processing system exception, wherein said second routine comprises a lock acquisition instruction to acquire a global lock associated with said shared resource prior to a performance of said resource access operation and a lock release instruction to release said global lock subsequent to said performance of said resource access operation. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A machine-readable medium having a plurality of instructions executable by a machine embodied therein, wherein said plurality of instructions when executed cause said machine to perform a method of providing access to a shared resource within a data processing system, said method comprising:
-
receiving a request to perform a resource access operation on said shared resource;
invoking a first routine to perform said resource access operation in response to said receiving, wherein said first routine comprises a dereference instruction to dereference a pointer to memory associated with said shared resource;
detecting a data processing system exception generated in response to invoking said first routine;
invoking a second routine to perform said resource access operation in response to said detecting, wherein said second routine comprises a lock acquisition instruction to acquire a global lock associated with said shared resource prior to a performance of said resource access operation and a lock release instruction to release said global lock subsequent to said performance of said resource access operation. - View Dependent Claims (18, 19, 20)
-
Specification