首页> 外文会议>ACM SIGPLAN Symposium on Priciples and Practice of Parallel Programming >Using Hardware Transactional Memory to Correct and Simplify a Readers-Writer Lock Algorithm
【24h】

Using Hardware Transactional Memory to Correct and Simplify a Readers-Writer Lock Algorithm

机译:使用硬件事务内存来纠正和简化读写器锁定算法

获取原文

摘要

Designing correct synchronization algorithms is notoriously difficult, as evidenced by a bug we have identified that has apparently gone unnoticed in a well-known synchronization algorithm for nearly two decades. We use hardware transactional memory (HTM) to construct a corrected version of the algorithm. This version is significantly simpler than the original and furthermore improves on it by eliminating usage constraints and reducing space requirements. Performance of the HTM-based algorithm is competitive with the original in "normal" conditions, but it does suffer somewhat under heavy contention. We successfully apply some optimizations to help close this gap, but we also find that they are incompatible with known techniques for improving progress properties. We discuss ways in which future HTM implementations may address these issues. Finally, although our focus is on how effectively HTM can correct and simplify the algorithm, we also suggest bug fixes and workarounds that do not depend on HTM.
机译:设计正确的同步算法是臭名昭着的,正如我们所识别的错误所证明,这在近二十年来的众所周知的同步算法中显然不受注意到。我们使用硬件事务内存(HTM)来构造算法的纠正版本。此版本明显比原件更简单,而且通过消除使用限制和降低空间要求,可以改进它。基于HTM的算法的性能与“正常”条件中的原始竞争竞争,但它确实在繁重的争用下遭受了一些。我们成功应用了一些优化来帮助关闭此差距,但我们发现它们与已知技术不兼容,以改善进度属性。我们讨论了未来HTM实现可能解决这些问题的方法。最后,虽然我们的重点是有效的HTM可以纠正和简化算法,但我们还建议错误修复和解决方法不依赖于HTM。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号