发明名称 Object locking in a shared VM environment
摘要 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.
申请公布号 US2003097360(A1) 申请公布日期 2003.05.22
申请号 US20020093425 申请日期 2002.03.07
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 MCGUIRE RICHARD K.;SLATTERY EDWARD J.;WEBSTER MATTHEW A.
分类号 G06F9/445;G06F9/46;(IPC1-7):G06F7/00;G06F17/30 主分类号 G06F9/445
代理机构 代理人
主权项
地址