首页> 外文期刊>International Journal of Parallel Programming >Wait-Free Multi-Word Compare-and-Swap Using Greedy Helping and Grabbing
【24h】

Wait-Free Multi-Word Compare-and-Swap Using Greedy Helping and Grabbing

机译:使用贪婪的帮助和抓紧的免等待多词比较和交换

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

摘要

We present a new algorithm for implementing a multi-word compare-and-swap functionality supporting the Read and CASN operations. The algorithm is wait-free under reasonable assumptions on execution history and benefits from new techniques to resolve conflicts between operations by using greedy helping and grabbing. Although the deterministic scheme for enabling grabbing somewhat sacrifices fairness, the effects are insignificant in practice. Moreover, unlike most of the previous results, the CASN operation does not require the list of addresses to be sorted before the operation is invoked, and the Read operation can read the current value without applying helping when the word to be read is within an ongoing transaction. Experiments using micro-benchmarks varying important parameters in three dimensions have been performed on two multiprocessor platforms. The results show similar performance as the lock-free algorithm by Harris et al. for most scenarios, and significantly better performance on scenarios with very high contention. This is altogether extraordinary good performance considering that the new algorithm is wait-free.
机译:我们提出了一种新算法,用于实现支持读和CASN操作的多字比较和交换功能。该算法在执行历史的合理假设下无需等待,并且受益于通过使用贪婪帮助和抢夺来解决操作之间的冲突的新技术。尽管用于确定抢夺的确定性方案牺牲了公平性,但实际效果并不明显。而且,与大多数以前的结果不同,CASN操作不需要在调用操作之前对地址列表进行排序,并且当要读取的单词在进行中时,Read操作可以读取当前值而无需施加帮助交易。在两个多处理器平台上进行了使用微基准在三个维度上改变重要参数的实验。结果显示出与Harris等人的无锁算法相似的性能。适用于大多数情况,并且在竞争非常高的情况下,性能显着提高。考虑到新算法无需等待,这完全是非常好的性能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号