最后一次使用不透明度:支持早期版本的transmitted内存的强大安全属性
Last-use Opacity: A Strong Safety Property for Transactional Memory with Early Release Support
摘要:
事务存储器(TM)是一种并发控制抽象,它允许程序员指定要作为事务原子地执行的代码块。然而,由于事务代码可以包含几乎任何操作,因此必须在任何给定时间关注共享变量的状态。例如,在一个示例中,与数据库事务相反,如果TM事务读取陈旧值,则它可能执行危险操作,如尝试除以零、访问非法内存地址或进入无限循环。因此,可串行化性是不够的,TM中需要更强的安全属性,这些属性规定了可以读取的值,即使是中止的事务。因此,开发了许多TM安全特性,包括不透明度以及TMS 1和TMS 2。然而,这些强大的属性排除了使用早期发布作为优化TM的技术,因为它们实际上禁止从实时事务中读取。另一方面,允许提前发布的属性要么不足以防止上述任何问题(可恢复性),要么在提前发布的事务上添加额外的条件,限制其适用性(弹性不透明度,实时不透明度,虚拟世界一致性)。本文介绍了最后一次使用不透明度,一个新的TM安全属性,这意味着是一个强大的属性,如不透明度和可串行化之间的妥协。该属性消除了所有不一致的视图,但只有一小部分不一致的视图,并且对事务没有严格的条件。为了说明,我们提出了一个最后使用不透明TM算法,并表明它满足新的安全属性。
英文摘要:
Transaction Memory (TM) is a concurrency control abstraction that allows the programmer to specify blocks of code to be executed atomically as transactions. However, since transactional code can contain just about any operation attention must be paid to the state of shared variables at any given time. E.g., contrary to a database transaction, if a TM transaction reads a stale value it may execute dangerous operations, like attempt to divide by zero, access an illegal memory address, or enter an infinite loop. Thus serializability is insufficient, and stronger safety properties are required in TM, which regulate what values can be read, even by transactions that abort. Hence, a number of TM safety properties were developed, including opacity, and TMS1 and TMS2. However, such strong properties preclude using early release as a technique for optimizing TM, because they virtually forbid reading from live transactions. On the other hand, properties that do allow early release are either not strong enough to prevent any of the problems mentioned above (recoverability), or add additional conditions on transactions with early release that limit their applicability (elastic opacity, live opacity, virtual world consistency). This paper introduces last-use opacity, a new TM safety property that is meant to be a compromise between strong properties like opacity and serializability. The property eliminates all but a small class of inconsistent views and poses no stringent conditions on transactions. For illustration, we present a last-use opaque TM algorithm and show that it satisfies the new safety property.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。