Are Lock-Free Concurrent Algorithms Practically Wait-Free?

Bibliographic Details
Title: Are Lock-Free Concurrent Algorithms Practically Wait-Free?
Authors: ALISTARH, DAN1 dan.alistarh@inf.ethz.ch, CENSOR-HILLEL, KEREN2 ckeren@cs.technion.ac.il, SHAVIT, NIR3 shanir@mit.edu
Source: Journal of the ACM. Sep2016, Vol. 63 Issue 4, p31-31:20. 20p.
Subject Terms: *Mathematical programming, *Machine theory, Foundations of arithmetic, Algorithmic randomness, Recursive functions
Abstract: Lock-free concurrent algorithms guarantee that some concurrent operation will always make progress in a finite number of steps. Yet programmers prefer to treat concurrent code as if it were wait-free, guaranteeing that all operations always make progress. Unfortunately, designing wait-free algorithms is generally a very complex task, and the resulting algorithms are not always efficient. Although obtaining efficient wait-free algorithms has been a long-time goal for the theory community, most nonblocking commercial code is only lock-free. This article suggests a simple solution to this problem.We show that for a large class of lock-free algorithms, under scheduling conditions that approximate those found in commercial hardware architectures, lock-free algorithms behave as if they are wait-free. In other words, programmers can continue to design simple lock-free algorithms instead of complex wait-free ones, and in practice, they will get wait-free progress. Our main contribution is a new way of analyzing a general class of lock-free algorithms under a stochastic scheduler. Our analysis relates the individual performance of processes to the global performance of the system using Markov chain lifting between a complex per-process chain and a simpler system progress chain. We show that lock-free algorithms are not only wait-free with probability 1 but that in fact a general subset of lock-free algorithms can be closely bounded in terms of the average number of steps required until an operation completes. To the best of our knowledge, this is the first attempt to analyze progress conditions, typically stated in relation to a worst-case adversary, in a stochastic model capturing their expected asymptotic behavior. [ABSTRACT FROM AUTHOR]
Copyright of Journal of the ACM is the property of Association for Computing Machinery and its content may not be copied or emailed to multiple sites or posted to a listserv without the copyright holder's express written permission. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Database: Business Source Complete
More Details
ISSN:00045411
DOI:10.1145/2903136
Published in:Journal of the ACM
Language:English