发明名称 Locking of computer resources
摘要 A computer processor includes a number of register pairs LOCKADD/LOCKCOUNT to hold values identifying when a computer resource is locked. The LOCKCOUNT register is incremented or decremented in response to lock or unlock instructions, respectively. The lock is freed when a count associated with the LOCKCOUNT register is decremented to zero. In embodiments without LOCKOUT registers, the lock may be freed on any unlock instruction corresponding to the lock. In some embodiments, a computer object includes a header in which two header LSBs store: (1) a LOCK bit indicating whether the object is locked, and (2) a WANT bit indicating whether a thread is waiting to acquire a lock for the object.
申请公布号 US6725308(B2) 申请公布日期 2004.04.20
申请号 US20020288393 申请日期 2002.11.05
申请人 SUN MICROSYSTEMS, INC. 发明人 JOY WILLIAM N.;O'CONNOR JAMES MICHAEL;TREMBLAY MARC
分类号 G06F9/46;(IPC1-7):G06F9/46;G06F12/00 主分类号 G06F9/46
代理机构 代理人
主权项
地址