![System and Method for Transactional Locking Using Reader-Lists](/abs-image/US/2010/07/08/US20100174875A1/abs.jpg.150x150.jpg)
基本信息:
- 专利标题: System and Method for Transactional Locking Using Reader-Lists
- 专利标题(中):使用读者列表进行事务锁定的系统和方法
- 申请号:US12350792 申请日:2009-01-08
- 公开(公告)号:US20100174875A1 公开(公告)日:2010-07-08
- 发明人: David Dice , Nir N. Shavit
- 申请人: David Dice , Nir N. Shavit
- 主分类号: G06F12/00
- IPC分类号: G06F12/00
摘要:
In traditional transactional locking systems, such as TLRW, threads may frequently update lock metadata, causing system performance degradation. A system and method for implementing transactional locking using reader-lists (TLRL) may associate a respective reader-list with each stripe of data in a shared memory system. Before reading a given stripe as part of a transaction, a thread may add itself to the stripe's reader-list, if the thread is not already on the reader-list. A thread may leave itself on a reader-list after finishing the transaction. Before a thread modifies a stripe, the modifying thread may acquire a write-lock for the stripe. The writer thread may indicate to each reader thread on the stripe's reader-list that if the reader thread is executing a transaction, the reader thread should abort. The indication may include setting an invalidation flag for the reader. The writer thread may clear the reader-list of a stripe it modified.
摘要(中):
在传统的事务锁定系统(如TLRW)中,线程可能会频繁更新锁元数据,导致系统性能下降。 用于使用读取器列表(TLRL)实现事务锁定的系统和方法可将相应的读取器列表与共享存储器系统中的每条数据条相关联。 在作为事务的一部分读取给定的条带之前,线程可能会将自身添加到条带的读取器列表中,如果该线程尚未在读取器列表中。 完成交易后,线程可能会在读取器列表上留下。 在线程修改条带之前,修改线程可以获取条带的写锁定。 作者线程可能会在条形码读取器列表上向每个读取器线程指示如果读取器线程正在执行事务,则读取器线程应该中止。 该指示可以包括设置读取器的无效标志。 作者线程可以清除其修改的条带的阅读器列表。