Method and apparatus for sharing resource locks amongst applications
First Claim
Patent Images
1. A method for sharing resource locks amongst applications comprising:
- receiving a lock request, whereinthe lock request is received from a first application, andthe lock request specifies that a resource be locked;
locking the resource using a key and lock combination for the locked resource;
supplying the key to the first application;
creating an exclusive lock mode key and a shared lock mode key;
detecting whether the locked resource is locked according to a shared lock mode or an exclusive lock mode;
sharing the shared lock mode key with at least one second application to enable the at least one second application to simultaneously access the resource, or sharing the exclusive lock mode key with the at least one second application to enable the at least one second application to have exclusive access to the resource, wherein the sharing comprises sending the key from the first application to the at least one second application; and
enabling the at least one second application to simultaneously access the resource with the first application.
8 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus for sharing an exclusive lock for a resource amongst a defined plurality of applications. A first application to lock a resource is given a key. The first application may provide the key to other applications to allow those applications to simultaneously access the locked resource. Generally, the first application will only provide keys to applications that are compatible with the first application such that the applications having keys to a resource will be able to simultaneously access the resource without conflict.
-
Citations
18 Claims
-
1. A method for sharing resource locks amongst applications comprising:
-
receiving a lock request, wherein the lock request is received from a first application, and the lock request specifies that a resource be locked; locking the resource using a key and lock combination for the locked resource; supplying the key to the first application; creating an exclusive lock mode key and a shared lock mode key; detecting whether the locked resource is locked according to a shared lock mode or an exclusive lock mode; sharing the shared lock mode key with at least one second application to enable the at least one second application to simultaneously access the resource, or sharing the exclusive lock mode key with the at least one second application to enable the at least one second application to have exclusive access to the resource, wherein the sharing comprises sending the key from the first application to the at least one second application; and enabling the at least one second application to simultaneously access the resource with the first application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer readable storage medium storing instructions executable by a processor to:
-
receive a lock request, wherein the lock request is received from a first application, and the lock request specifies that a resource be locked; lock the resource using a key and lock combination for the locked resource; supply the key to the first application; create an exclusive lock mode key and a shared lock mode key; detect whether the locked resource is locked according to a shared lock mode or an exclusive lock mode; share the shared lock mode key with at least one second application to enable the at least one second application to simultaneously access the resource, or share the exclusive lock mode key with the at least one second application to enable the at least one second application to have exclusive access to the resource, wherein sharing comprises sending the key from the first application to at least one second application; and enable the at least one second application to simultaneously access the resource with the first application. - View Dependent Claims (11)
-
-
12. An apparatus for sharing resource locks amongst applications comprising:
-
means for providing a lock manager, wherein the lock manager is configured for receiving a lock request from a first application to lock a resource, locking the resource using a key and lock combination, supplying the key to the first application, and creating an exclusive lock mode key and a shared lock mode key; means for detecting whether the locked resource is locked according to a shared lock mode or an exclusive lock mode; and means for providing a lock Application Programming Interface (API), operating with said first application, wherein the lock API is configured for sharing the shared lock mode key with at least one second application to enable the at least one second application to simultaneously access the resource, or sharing the exclusive lock mode key with the at least one second application to enable the at least one second application to have exclusive access to the resource, wherein the sharing comprises sending the key to the at least one second application, and enabling the at least one second application to simultaneously access the resource with the first application. - View Dependent Claims (13, 14, 15, 16, 17, 18)
-
Specification