首页> 外文期刊>Concurrency and computation: practice and experience >Dekker's mutual exclusion algorithm made RW-safe
【24h】

Dekker's mutual exclusion algorithm made RW-safe

机译:Dekker的互斥算法使RW安全

获取原文
获取原文并翻译 | 示例
       

摘要

Dekker's algorithm was thought to be safe in an environment without atomic reads or writes where bits flicker or scramble during simultaneous operations. A counter-example is presented showing Dekker's algorithm is unsafe without atomic read. A modification to the original algorithm is presented making it RW-safe, allowing threaded systems to be built on low cost/power hardware without atomic read/write. Correctness is verified by means of invariants and UNITY logic. A performance comparison is made for several two-thread software mutual-exclusion algorithms to see if the RW-safe Dekker is competitive. A subset of the two-thread solutions are then compared in two N-thread tournament algorithms. The performance results show that the additional checks in the RW-safe Dekker do not disadvantage the algorithm in comparison with other two-thread algorithms. The RW-safe N-thread tournament algorithms are competitive with the hardware-assisted Mellor-Crummey and Scott algorithm. Copyright © 2015 John Wiley & Sons, Ltd.
机译:人们认为Dekker算法在没有原子读取或写入的环境中是安全的,在原子读取或写入的同时操作期间位会闪烁或混乱。提出了一个反例,表明没有原子读取,Dekker算法是不安全的。提出了对原始算法的修改,使其具有读写安全性,从而允许线程系统在低成本/低功耗硬件上构建,而无需原子读写。通过不变量和UNITY逻辑验证正确性。对几种两线程软件互斥算法进行了性能比较,以了解RW安全的Dekker是否具有竞争力。然后,在两个N线程锦标赛算法中比较两个线程解决方案的子集。性能结果表明,与其他两线程算法相比,RW安全的Dekker中的附加检查并不不利于该算法。 RW安全的N线程锦标赛算法与硬件辅助的Mellor-Crummey和Scott算法相比具有竞争优势。版权所有©2015 John Wiley&Sons,Ltd.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号