首页> 外文期刊>Concurrency and computation: practice and experience >Multi-dimensional lock-free arrays for multithreaded mode-directed tabling in Prolog
【24h】

Multi-dimensional lock-free arrays for multithreaded mode-directed tabling in Prolog

机译:Prolog中用于多线程模式控制制表的多维无锁数组

获取原文
获取原文并翻译 | 示例

摘要

This work proposes a new design for the supporting data structures used to implement multithreadedtabling in Prolog systems. Tabling is an implementation technique that improves theexpressiveness of traditional Prolog systems in dealing with recursion and redundant computations.Mode-directed tabling is an extension to the tabling technique that supports the definitionof alternative criteria for specifying how answers are aggregated, thus being very suitable forproblems where the goal is to dynamically calculate optimal or selective answers. In this work,we leverage the intrinsic potential that mode-directed tabling has to express dynamic programmingproblems by creating a new design that improves the representation of multi-dimensionalarrays in the context of multithreaded tabling. To do so, we introduce a new mode for indexingarguments in mode-directed tabled evaluations, named dim, where each dim argument featuresa uni-dimensional lock-free array. Experimental results using well-known dynamic programmingproblems on a 32-core machine show that the new design introduces less overheads and clearlyimproves the execution time for sequential and multithreaded tabled evaluations.
机译:这项工作为用于在Prolog系统中实现多线程 n嵌套的支持数据结构提出了一种新设计。制表是一种实现技术,可提高传统Prolog系统在处理递归和冗余计算时的灵活性。 r n模式制表是对制表技术的扩展,该技术支持用于指定的替代标准的定义如何汇总答案,因此非常适合目标为动态计算最佳或选择性答案的问题。在这项工作中,我们通过创建一种新的设计来改进模式多维制表在动态编程方面的内在潜力,该设计在多线程制表的背景下改善了多维数组的表示形式。为此,我们引入了一种新的模式,该模式用于在模式定向表评估中索引 r 自变量,称为dim,其中每个dim参数具有 r na一维无锁数组。在32核计算机上使用著名的动态编程问题的实验结果表明,新设计引入了更少的开销,并且明显地改善了顺序表和多线程表评估的执行时间。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号