Theory and Practice of Logic Programming · 2012 · 11 citations · 6 references
ComputingComputer ScienceData StructuresProgramming LanguagesSystems ProgrammingConcurrency ControlConcurrent ProgrammingInterprocess CommunicationSynchronization PrimitivesConcurrency PrimitivesDeclarative SemanticsLocking MechanismsLocks
Abstract Multi-threading is currently supported by several well-known Prolog systems providing a highly portable solution for applications that can benefit from concurrency. When multi-threading is combined with tabling, we can exploit the power of higher procedural control and declarative semantics. However, despite the availability of both threads and tabling in some Prolog systems, the implementation of these two features implies complex ties to each other and to the underlying engine. Until now, XSB was the only Prolog system combining multi-threading with tabling. In XSB, tables may be either private or shared between threads. While thread-private tables are easier to implement, shared tables have all the associated issues of locking, synchronization and potential deadlocks. In this paper, we propose an alternative view to XSB's approach. In our proposal, each thread views its tables as private but, at the engine level, we use a common table space where tables are shared among all threads. We present three designs for our common table space approach: No-Sharing (NS) (similar to XSB's private tables), Subgoal-Sharing (SS) and Full-Sharing (FS) . The primary goal of this work was to reduce the memory usage for the table space but, our experimental results, using the YapTab tabling system with a local evaluation strategy, show that we can also achieve significant reductions on running time.
6
Tabled evaluation with delaying for general logic programs
Weidong Chen, David S. Warren · Journal of the ACM · 1996 · 412 citations · Full text
Senlin Liang, Paul Fodor, Hui Wan et al. · 2009 · 116 citations
Efficient access mechanisms for tabled logic programs
I. V. Ramakrishnan, Prasad Rao, Konstantinos Sagonas et al. · The Journal of Logic Programming · 1999 · 103 citations · Full text