Invention Grant
US08230409B2 Code optimization when using multiple reader locks and a non-reader lock
有权
使用多个读卡器锁和非读卡器锁时的代码优化
- Patent Title: Code optimization when using multiple reader locks and a non-reader lock
- Patent Title (中): 使用多个读卡器锁和非读卡器锁时的代码优化
-
Application No.: US11864401Application Date: 2007-09-28
-
Publication No.: US08230409B2Publication Date: 2012-07-24
- Inventor: Nikola Grcevski , Mark Graham Stoodley
- Applicant: Nikola Grcevski , Mark Graham Stoodley
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Yee & Associates, P.C.
- Agent David A. Mims, Jr.
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
A way to use multiple-reader locks for those paths where no writes occur is provided. Only if one of the writing paths executes will a full writer lock be acquired. Two copies of the critical section comprising a reading version and a writing version are created. The default execution leads to the reader version, which only acquires a reader-lock. The reader version of the code executes prior to execution of the writer lock only version, otherwise bypassing the writer lock only version. If the execution leads to a path in which a write would occur, the reader only version branches to the beginning of the writer version. The writer version is identical to the original code and obtains a full writer lock. If execution in the reader lock does not lead to a path that writes, then only the reader lock is acquired.
Public/Granted literature
- US20090089769A1 CODE OPTIMIZATION WHEN USING MULTIPLE READER LOCKS AND A NON-READER LOCK Public/Granted day:2009-04-02
Information query