Lock-free atom garbage collection for multithreaded Prolog. Issue 5 (14th October 2016)
- Record Type:
- Journal Article
- Title:
- Lock-free atom garbage collection for multithreaded Prolog. Issue 5 (14th October 2016)
- Main Title:
- Lock-free atom garbage collection for multithreaded Prolog
- Authors:
- WIELEMAKER, JAN
HARRIS, KERI - Editors:
- Carro, Manuel
King, Andy - Abstract:
- Abstract: The runtime system of dynamic languages such as Prolog or Lisp and their derivatives contain a symbol table, in Prolog often called the atom table . A simple dynamically resizing hash-table used to be an adequate way to implement this table. As Prolog becomes fashionable for 24 × 7 server processes we need to deal with atom garbage collection and concurrent access to the atom table. Classical lock-based implementations to ensure consistency of the atom table scale poorly and a stop-the-world approach to implement atom garbage collection quickly becomes a bottle-neck, making Prolog unsuitable for soft real-time applications. In this article we describe a novel implementation for the atom table using lock-free techniques where the atom-table remains accessible even during atom garbage collection. Relying only on CAS (Compare And Swap) and not on external libraries, the implementation is straightforward and portable.
- Is Part Of:
- Theory and practice of logic programming. Volume 16:Issue 5/6(2016)
- Journal:
- Theory and practice of logic programming
- Issue:
- Volume 16:Issue 5/6(2016)
- Issue Display:
- Volume 16, Issue 5/6 (2016)
- Year:
- 2016
- Volume:
- 16
- Issue:
- 5/6
- Issue Sort Value:
- 2016-0016-NaN-0000
- Page Start:
- 950
- Page End:
- 965
- Publication Date:
- 2016-10-14
- Subjects:
- atom, -- symbol table, -- atom garbage collection, -- lock-free, -- hash table
Logic programming -- Periodicals
Artificial intelligence -- Computer programs -- Periodicals
Constraint programming (Computer science) -- Periodicals
005.115 - Journal URLs:
- https://www.cambridge.org/core/journals/theory-and-practice-of-logic-programming ↗
- DOI:
- 10.1017/S1471068416000272 ↗
- Languages:
- English
- ISSNs:
- 1471-0684
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD Digital store
- Ingest File:
- 1789.xml