发明名称 Thread locking
摘要 The invention relates to a method of providing thread locking within a multi-threading object-oriented computer program. Each object (400, 500, 600) includes a reserved lock word which is initially set to zero to indicate that the object is unlocked. When the object is to be locked, the word is changed to a pointer (630) which points to a particular memory block (710) within a separate lock pool (700). That memory block contains all the necessary locking information for the object. When the object is to be unlocked, the pointer (630) is deleted, and the lock word set back to zero. The corresponding block (710) in the lock pool is then released, and may be reused for other locking information or for other data that may be required to be stored by the executing application.
申请公布号 US2002138661(A1) 申请公布日期 2002.09.26
申请号 US20020094302 申请日期 2002.03.08
申请人 HAYWARD ANDREW 发明人 HAYWARD ANDREW
分类号 G06F9/46;G06F9/52;(IPC1-7):G06F9/44;G06F9/00 主分类号 G06F9/46
代理机构 代理人
主权项
地址
您可能感兴趣的专利