Inter java virtual machine (JVM) resource locking mechanism
AssigneeSun Microsystems, Inc.
InventorPavel S. Veselov
Life of this patent
Estimating the term…
Abstract
A system and method of sharing a resource includes receiving a request for a shared resource in a locking repository. The request is from a requestor and the requestor is one of several applications. Each of the applications is running on one of several Java virtual machines (JVMs). The shared resource is locked to the requester, if the shared resource is identified as available in the master locking repository.
Claims22
A method of sharing a resource comprising:
- receiving a request for a shared resource in a locking repository, the request being from a requester, the requestor being one of a plurality of applications, wherein the plurality of applications are running on a plurality of JVMs;
- determining if the shared resource is identified as available in a master locking repository;
- and
- locking the shared resource to the requester, if the shared resource is identified as available in the master locking repository.
A method of unlocking a shared resource comprising:
- receiving an unlock request from an unlock requestor, where in the unlock request includes a request to unlock a shared resource that was previously locked to a lock requestor;
- determining if the unlock requestor is the same as the lock requestor;
- and
- unlocking the shared resource if the unlock requestor is the same as the lock requestor.
A method for a requester application to select a shared resource comprising:
- determining a current status of a first shared resource;
- locking the first shared resource to the requestor application if the first shared resource is available.
A method of selecting a master locking repository comprising:
- instantiating a first application, the first application including a first library;
- sending a query for a master locking repository from the first library to a second library, if a second library has been instantiated in a second application;
- instantiating a master locking repository in the first library, if the second library does not respond to the query;
- and
- instantiating a slave locking repository in the first library, if the second library responds to the query.
A system comprising:
- a plurality of shared resources coupled to a first computing platform the first computing platform including:
- a first Java virtual machine including a first application, the first application includes a first library object;
- and
- a second Java virtual machine including a second application, the second application includes a second library object;
- logic for receiving a request for a selected one of the plurality of shared resources in a master locking repository, the request being from the first application;
- logic for determining if the shared resource is identified as available in a master locking repository;
- and
- logic for locking the shared resource to the requester in the master locking repository, if the selected shared resource is is identified as available in the master locking repository.
Dependencies are inferred from the claim text.