Object locking in a shared vm environment

    公开(公告)号:GB2381092A

    公开(公告)日:2003-04-23

    申请号:GB0125314

    申请日:2001-10-19

    Applicant: IBM

    Abstract: A system is provided which comprises multiple Java virtual machines (VMs) . Each VM is capable of running a plurality of threads. The system includes at least one object which is shared between the VMs so that it is accessible from two or more VMs, and at least one non-shared object which is accessible only from a single VM. In order to perform a lock operation on a shared object, it is first detecting that an object is a shared object. In a preferred embodiment, this is accomplished by locating a predefined value in a particular lock data word in the object. In response to the detection, a monitor is used to control local access to the shared object for the thread that is requesting the object. The monitor is on the same VM as the requesting thread. In addition, a data structure, which may be a proxy object, is updated in order to associate the monitor with the shared object.

    Object locking in a shared VM environment

    公开(公告)号:GB2381092B

    公开(公告)日:2005-10-19

    申请号:GB0125314

    申请日:2001-10-19

    Applicant: IBM

    Abstract: A system is provided which comprises multiple Java virtual machines (VMs). Each VM is capable of running a plurality of threads. The system includes at least one object which is shared between the VMs so that it is accessible from two or more VMs, and at least one non-shared object which is accessible only from a single VM. In order to perform a lock operation on a shared object, it is first detecting that an object is a shared object. In a preferred embodiment, this is accomplished by locating a predefined value in a particular lock data word in the object. In response to the detection, a monitor is used to control local access to the shared object for the thread that is requesting the object. The monitor is on the same VM as the requesting thread. In addition, a data structure, which may be a proxy object, is updated in order to associate the monitor with the shared object.

Patent Agency Ranking