2024年3月11日发(作者:)
专利内容由知识产权出版社提供
专利名称:CODE OPTIMIZATION WHEN USING
MULTIPLE READER LOCKS AND A NON-
READER LOCK
发明人:Nikola Grcevski,Mark Graham Stoodley
申请号:US11864401
申请日:20070928
公开号:US2A1
公开日:20090402
专利附图:
摘要:Illustrative embodiments provide a way to use multiple-reader locks for those
paths where no writes occur. A computer implemented method, data processing system
and computer program product provide a capability where only if one of the writing
paths executes will a full writer lock be acquired. Illustrative embodiments may be used
to create two copies of the critical section comprising a reading version and a writing
version. 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.
申请人:Nikola Grcevski,Mark Graham Stoodley
地址:Toronto CA,Markham CA
国籍:CA,CA
更多信息请下载全文后查看
发布评论