arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1112.3786cs.PL
收藏

hProlog中的高级多线程

High-Level Multi-Threading in hProlog

Timon Van Overveldt, Bart Demoen

摘要:

描述了在hProlog中实现的Prolog中多线程的新高级接口。现代CPU通常包含多个内核,通过高级多线程,程序员可以利用这种能力,而不必担心低级细节。讨论了两种常见的高级显式并行:独立与并行和竞争或并行。提出了一种新的显式并行机制--流水线并行。这种新的类型可以用于独立与并行和竞争或并行不能使用的某些情况下。

英文摘要:

A new high-level interface to multi-threading in Prolog, implemented in hProlog, is described. Modern CPUs often contain multiple cores and through high-level multi-threading a programmer can leverage this power without having to worry about low-level details. Two common types of high-level explicit parallelism are discussed: independent and-parallelism and competitive or-parallelism. A new type of explicit parallelism, pipeline parallelism, is proposed. This new type can be used in certain cases where independent and-parallelism and competitive or-parallelism cannot be used.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑