Apparatus and method for managing resources using virtual ID in multiple Java application environment

Information

  • Patent Application
  • 20070203959
  • Publication Number
    20070203959
  • Date Filed
    January 11, 2007
    18 years ago
  • Date Published
    August 30, 2007
    17 years ago
Abstract
Provided are an apparatus and method for managing resources using virtual ID in a multiple Java application environment, and more particularly, an apparatus and method for allocating or de-allocating resources using a virtual ID in a multiple Java application environment, thereby effectively using the resource. The apparatus includes a resource managing unit requesting an operating system to allocate or de-allocate a resource when an application requests to allocate or de-allocate the resource; a virtual ID generating unit generating virtual ID corresponding to the resource allocated from the operating system; and an ID searching unit searching whether the virtual ID exists when the application requests to de-allocate the resource using the virtual ID.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings, in which:



FIG. 1A is a block diagram illustrating the structure of a multiple Java application according to the related art;



FIG. 1B is a block diagram illustrating the configuration of a JAVA virtual machine;



FIG. 2 is a diagram illustrating an example of the use of a resource by an application in an apparatus for managing resources using a virtual ID in a multiple Java application environment according to an exemplary embodiment of the invention;



FIG. 3 is a block diagram illustrating the configuration of a multiple Java application environment according to another exemplary embodiment of the invention;



FIG. 4 is a block diagram illustrating the internal structure of an apparatus for managing resources using a virtual ID in a multiple Java application environment according to still another exemplary embodiment of the invention;



FIG. 5 is a diagram illustrating an example of a table managed by an apparatus for managing resources using a virtual ID in a multiple Java application environment according to yet another exemplary embodiment of the invention;



FIG. 6 is a flow chart illustrating a process of allocating a resource in a method of managing resources using a virtual ID in a multiple Java application environment according to still yet another exemplary embodiment of the invention;



FIG. 7A is a flow chart illustrating a process of de-allocating a resource in a method of managing resources using virtual ID in a multiple Java application environment according to still yet another exemplary embodiment of the invention;



FIG. 7B is a flow chart illustrating a process of de-allocating a resource performed by the resource management interface when a garbage collector requests to de-allocate the resource according to an exemplary embodiment of the invention;



FIG. 8 is a flow chart illustrating a process of de-allocating all resources in a method of managing resources using a virtual ID in a multiple Java application environment according to still yet another exemplary embodiment of the invention; and



FIG. 9 is a diagram illustrating the operation of an application, a resource management interface, and an operating system that allocate or de-allocate resources in a multiple Java application environment according to still yet another exemplary embodiment of the invention.


Claims
  • 1. An apparatus for managing resources using a virtual ID in a multiple Java application environment, the apparatus comprising: a resource managing unit which requests an operating system to one of allocate and de-allocate a resource when an application requests to one of allocate and de-allocate the resource;a virtual ID generating unit which generates a virtual ID corresponding to the resource allocated from the operating system; andan ID searching unit which searches whether the virtual ID exists when the application requests to de-allocate the resource using the virtual ID.
  • 2. The apparatus of claim 1, wherein, when the ID searching unit determines that the virtual ID exists, the resource managing unit requests to de-allocate a resource corresponding to the virtual ID.
  • 3. The apparatus of claim 1, wherein the virtual ID is a unique ID generated when the resource is allocated from the operating system.
  • 4. The apparatus of claim 1, further comprising: a control unit which generates a table including an application ID transmitted from the application, the virtual ID, and the allocated resource and, when a predetermined resource is de-allocated, deletes the table including the de-allocated resource; anda storage unit which stores the table.
  • 5. A method of managing resources using a virtual ID in a multiple Java application environment, the method comprising: when an application requests to allocate a resource, requesting an operating system to allocate the resource in response to the request;generating a virtual ID corresponding to the allocated resource;generating a table including an application ID transmitted from the application, the generated virtual ID, and the allocated resource; andtransmitting the virtual ID and the allocated resource to the application.
  • 6. The method of claim 5, wherein the virtual ID is a unique ID generated when the resource is allocated from the operating system.
  • 7. A method of managing resources using a virtual ID in a multiple Java application environment, the method comprising: when an application requests to de-allocate a resource using a virtual ID, searching whether a table including the virtual ID transmitted from the application exists;when it is determined that the table including the transmitted virtual ID exists, requesting an operating system to de-allocate a resource corresponding to the virtual ID; andwhen the resource is de-allocated, deleting the table including the virtual ID.
  • 8. The method of claim 7, wherein, when it is determined that the table including the transmitted virtual ID does not exist, the de-allocation of the resource is not performed.
  • 9. The method of claim 7, wherein the virtual ID is a unique ID corresponding to the resource allocated to the application.
  • 10. The method of claim 7, wherein the table comprises an ID of the application using a predetermined resource, the virtual ID corresponding to the resource, and the allocated resource.
Priority Claims (1)
Number Date Country Kind
10-2006-0018282 Feb 2006 KR national