Computer Science > Distributed, Parallel, and Cluster Computing
[Submitted on 21 Mar 2012 (v1), last revised 13 Oct 2015 (this version, v8)]
Title:Optimism for Boosting Concurrency
View PDFAbstract:Modern concurrent programming benefits from a large variety of synchronization techniques. These include conventional pessimistic locking, as well as optimistic techniques based on conditional synchronization primitives or transactional memory. Yet, it is unclear which of these approaches better leverage the concurrency inherent to multi-cores.
In this paper, we compare the level of concurrency one can obtain by converting a sequential program into a concurrent one using optimistic or pessimistic techniques. To establish fair comparison of such implementations, we introduce a new correctness criterion for concurrent programs, defined independently of the synchronization techniques they use.
We treat a program's concurrency as its ability to accept a concurrent schedule, a metric inspired by the theories of both databases and transactional memory. We show that pessimistic locking can provide strictly higher concurrency than transactions for some applications whereas transactions can provide strictly higher concurrency than pessimistic locks for others. Finally, we show that combining the benefits of the two synchronization techniques can provide strictly more concurrency than any of them individually. We propose a list-based set algorithm that is optimal in the sense that it accepts all correct concurrent schedules. As we show via experimentation, the optimality in terms of concurrency is reflected by scalability gains.
Submission history
From: Srivatsan Ravi Mr [view email][v1] Wed, 21 Mar 2012 14:44:40 UTC (163 KB)
[v2] Thu, 24 May 2012 12:47:54 UTC (64 KB)
[v3] Mon, 27 May 2013 15:01:56 UTC (62 KB)
[v4] Wed, 3 Jul 2013 15:18:00 UTC (62 KB)
[v5] Fri, 4 Oct 2013 18:16:19 UTC (64 KB)
[v6] Fri, 14 Feb 2014 16:49:05 UTC (87 KB)
[v7] Tue, 27 May 2014 09:41:32 UTC (149 KB)
[v8] Tue, 13 Oct 2015 21:02:53 UTC (145 KB)
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.