arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2210.15202cs.PL
收藏

论因果论与决定论

A Survey on Parallelism and Determinism

Laure Gonnord, Ludovic Henrio, Lionel Morel, Gabriel Radanne

摘要:

表演往往需要表演主义。在这些情况下,过度的非确定性是有害的,因为它意味着程序可以有几个不同的行为,甚至不同的结果。即使在诸如并行性对性能至关重要的高性能计算等领域,计算值也应该是确定性的。不幸的是,程序中的非确定性也允许动态调度任务,对成功的第一个任务做出反应,取消不能导致结果的任务等。在实践中,为了控制程序的哪些部分是确定性的,通常需要限制非确定性并精确地识别非确定性的来源。本文从程序设计语言的角度出发,研究了程序设计模型如何保证并行程序的确定性。本综述不仅研究确定性语言,还研究防止一个特别苛刻的非确定性来源的编程模型:数据竞争。我们的目标是比较现有的解决方案,以下列问题:如何程序设计语言可以帮助程序员编写程序,在一个并行的方式运行,没有明显的非确定性?什么样的编程范式确保了这种属性?我们研究这些问题,并讨论不同方法的优点和局限性。

英文摘要:

Parallelism is often required for performance. In these situations an excess of non-determinism is harmful as it means the program can have several different behaviours or even different results. Even in domains such as high-performance computing where parallelism is crucial for performance, the computed value should be deterministic. Unfortunately, non-determinism in programs also allows dynamic scheduling of tasks, reacting to the first task that succeeds, cancelling tasks that cannot lead to a result, etc. Non-determinism is thus both a desired asset or an undesired property depending on the situation. In practice, it is often necessary to limit non-determinism and to identify precisely the sources of non-determinism in order to control what parts of a program are deterministic or not. This survey takes the perspective of programming languages, and studies how programming models can ensure the determinism of parallel programs. This survey studies not only deterministic languages but also programming models that prevent one particularly demanding source of non-determinism: data races. Our objective is to compare existing solutions to the following questions: How programming languages can help programmers write programs that run in a parallel manner without visible non-determinism? What programming paradigms ensure this kind of properties? We study these questions and discuss the merits and limitations of different approaches.

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

↑