Skip to main content

Bounds on Contention Management Algorithms

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 5878))

Abstract

We present two new algorithms for contention management in transactional memory, the deterministic algorithm CommitRounds and the randomized algorithm RandomizedRounds. Our randomized algorithm is efficient: in some notorious problem instances (e.g., dining philosophers) it is exponentially faster than prior work from a worst case perspective. Both algorithms are (i) local and (ii) starvation-free. Our algorithms are local because they do not use global synchronization data structures (e.g., a shared counter), hence they do not introduce additional resource conflicts which eventually might limit scalability. Our algorithms are starvation-free because each transaction is guaranteed to complete. Prior work sometimes features either (i) or (ii), but not both. To analyze our algorithms (from a worst case perspective) we introduce a new measure of complexity that depends on the number of actual conflicts only. In addition, we show that even a non-constant approximation of the length of an optimal (shortest) schedule of a set of transactions is NP-hard – even if all transactions are known in advance and do not alter their resource requirements. Furthermore, in case the needed resources of a transaction varies over time, such that for a transaction the number of conflicting transactions increases by a factor k , the competitive ratio of any contention manager is Ω(k) for \(k<\sqrt{m}\), where m denotes the number of cores.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Attiya, H., Epstein, L., Shachnai, H., Tamir, T.: Transactional contention management as a non-clairvoyant scheduling problem. In: PODC (2006)

    Google Scholar 

  2. Damron, P., Fedorova, A., Lev, Y., Luchangco, V., Moir, M., Nussbaum, D.: Hybrid transactional memory. In: ASPLOS (2006)

    Google Scholar 

  3. Dice, D., Shavit, N.: Understanding Tradeoffs in Software Transactional Memory. Symp. on Code Generation and Optimization (2007)

    Google Scholar 

  4. Eidenbenz, R., Wattenhofer, R.: Good Programming in Transactional Memory: Game Theory Meets Multicore Architecture. In: ISAAC (2009)

    Google Scholar 

  5. Guerraoui, R., Herlihy, M., Pochon, B.: Toward a theory of transactional contention managers. In: PODC (2005)

    Google Scholar 

  6. Harris, T., Fraser, K.: Language support for lightweight transactions. In: OOPSLA Conference (2003)

    Google Scholar 

  7. Herlihy, M., Luchangco, V., Moir, M., Scherer, W.: Software transactional memory for dynamic-sized data structures. In: PODC (2003)

    Google Scholar 

  8. Herlihy, M., Moss, J.: Transactional Memory: Architectural Support For Lock-free Data Structures. In: Symp. on Computer Architecture (1993)

    Google Scholar 

  9. Kuhn, F.: Weak Graph Coloring: Distributed Algorithms and Applications. In: SPAA (2009)

    Google Scholar 

  10. Ramadan, H., Rossbach, C., Porter, D., Hofmann, O., Bhandari, A., Witchel, E.: MetaTM/TxLinux: transactional memory for an operating system. In: Symp. on Computer Architecture (2007)

    Google Scholar 

  11. Riegel, T., Fetzer, C., Felber, P.: Time-based Transactional Memory with Scalable Time Bases. In: Parallel Algorithms and Architectures (2007)

    Google Scholar 

  12. Scherer, W., Scott, M.: Advanced contention management for dynamic software transactional memory. In: PODC (2005)

    Google Scholar 

  13. Schneider, J., Wattenhofer, R.: A Log-Star Distributed Maximal Independent Set Algorithm for Growth-Bounded Graphs. In: PODC (2008)

    Google Scholar 

  14. Schneider, J., Wattenhofer, R.: Bounds On Contention Management Algorithms. TIK Technical Report 311 (2009), ftp://ftp.tik.ee.ethz.ch/pub/publications/TIK-Report-311.pdf

  15. Schneider, J., Wattenhofer, R.: Coloring Unstructured Wireless Multi-Hop Networks. In: PODC (2009)

    Google Scholar 

  16. Shavit, N., Touitou, D.: Software transactional memory. Distributed Computing 10 (1997)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Schneider, J., Wattenhofer, R. (2009). Bounds on Contention Management Algorithms. In: Dong, Y., Du, DZ., Ibarra, O. (eds) Algorithms and Computation. ISAAC 2009. Lecture Notes in Computer Science, vol 5878. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-10631-6_46

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-10631-6_46

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-10630-9

  • Online ISBN: 978-3-642-10631-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics