skip to main content
10.1145/2484239.2484286acmconferencesArticle/Chapter ViewAbstractPublication PagespodcConference Proceedingsconference-collections
extended-abstract

Brief announcement: resettable objects and efficient memory reclamation for concurrent algorithms

Published:22 July 2013Publication History

ABSTRACT

We present a new technique for reclaiming memory in concurrent shared memory algorithms with n asynchronous processes. Our methodology can be applied in the same settings as hazard pointers [10], but provides better worst-case guarantees: For the same tasks for which hazard pointers have expected constant amortized complexity, our technique guarantees constant time in the worst-case.

We use our technique to implement efficient randomized long-lived test-and-set (TAS) objects from registers, based on known constructions of randomized one-time TAS objects [2, 9]. One of our constructions uses O(n) space (which is optimal), and the reset() and Test&Set() operations have expected step complexity O(log log n) against the oblivious adversary.

We also present a general method of augmenting shared objects with a reset() operation which can be used to reset the object into its initial state at any time. In many cases the transformation is optimal with respect to the time complexity of the resulting object. E.g., an object implemented from m registers can be augmented with a reset() operation which has O(1) time complexity and without affecting the asymptotic time complexity of other operations; the resulting object uses O(n2m) unbounded registers.

References

  1. Y. Afek, E. Gafni, J. Tromp, and P. M. B. Vitányi. Wait-free test-and-set. In Proc. of 6th WDAG, pages 85--94, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. D. Alistarh and J. Aspnes. Sub-logarithmic test-and-set against a weak adversary. In Proc. of 25th DISC, pages 97--109, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. D. Alistarh, H. Attiya, S. Gilbert, A. Giurgiu, and R. Guerraoui. Fast randomized test-and-set and renaming. In Proc. of 24th DISC, pages 94--108, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. M. Blackburn, P. Cheng, and K. S. McKinley. Myths and realities: the performance impact of garbage collection. SIGMETRICS Perform. Eval. Rev., 32(1):25--36, June 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. T. Brown, F. Ellen, and E. Ruppert. Pragmatic primitives for non-blocking data structures. In Proc. of 32th PODC, 2013. To appear. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. J. E. Burns and N. A. Lynch. Bounds on shared memory for mutual exclusion. Information and Computation, 107(2):171--184, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. F. Ellen and P. Woelfel. An optimal implementation of fetch-and-increment. Manuscript, 2013.Google ScholarGoogle Scholar
  8. H. Gao, J. F. Groote, and W. H. Hesselink. Lock-free parallel and concurrent garbage collection by mark&sweep. Sci. Comput. Program., 64(3):341--374, Feb. 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. G. Giakkoupis and P. Woelfel. On the time and space complexity of randomized test-and-set. In Proc. of 31th PODC, pages 19--28, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. M. M. Michael. Hazard pointers: Safe memory reclamation for lock-free objects. IEEE Trans. Parallel Distrib. Syst., 15(6):491--504, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Brief announcement: resettable objects and efficient memory reclamation for concurrent algorithms

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        PODC '13: Proceedings of the 2013 ACM symposium on Principles of distributed computing
        July 2013
        422 pages
        ISBN:9781450320658
        DOI:10.1145/2484239

        Copyright © 2013 Copyright is held by the owner/author(s)

        Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the Owner/Author.

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 22 July 2013

        Check for updates

        Qualifiers

        • extended-abstract

        Acceptance Rates

        PODC '13 Paper Acceptance Rate37of145submissions,26%Overall Acceptance Rate740of2,477submissions,30%

        Upcoming Conference

        PODC '24

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader