发明名称 |
System and method for space efficient object locking |
摘要 |
In summary, the present invention is a multithreaded computer system having a memory that stores a plurality of objects and a plurality of procedures. Each object has a lock status of locked or unlocked, and includes a data pointer to a data structure. The system uses a global object locking procedure to service lock requests on objects that have never been locked as well as objects that have not recently been locked, and uses a local object-specific locking procedure to service lock requests on locked objects and objects that have been recently locked. The global object locking procedure has instructions for changing a specified unlocked object's lock status to locked, and for creating for each specified object a local object locking procedure. The local object locking procedure includes a lock data subarray for storing the object's lock data and instructions for updating a specified object's stored lock data. A lock data cleanup procedure, executed when the system's garbage collection procedure is executed, releases the local object locking procedure of a specified object if the object has not been recently locked.
|
申请公布号 |
SG75107(A1) |
申请公布日期 |
2000.09.19 |
申请号 |
SG19960011557 |
申请日期 |
1996.12.06 |
申请人 |
SUN MICROSYSTEMS, INC. |
发明人 |
JOY, WILIAM, N.;HOFF VAN, ARTHUR, A. |
分类号 |
G06F9/42;G06F9/46;(IPC1-7):G06F9/44;G06F9/40;G06F9/06;G06F9/445;G06F17/30 |
主分类号 |
G06F9/42 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|