首页> 外文会议>Programming languages and systems. >A Type and Effect System for Determinism in Multithreaded Programs
【24h】

A Type and Effect System for Determinism in Multithreaded Programs

机译:多线程程序中确定性的类型和效果系统

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

摘要

There has been much recent interest in supporting deterministic parallelism in imperative programs. Structured parallel programming models have used type systems or static analysis to enforce determinism by constraining potential interference of lexically scoped tasks. But similar support for multithreaded programming, where threads may be ubiquitously spawned with arbitrary lifetimes, especially to achieve a modular and manageable combination of determinism and nondeterminism in multithreaded programs, remains an open problem. This paper proposes a simple and intuitive approach for tracking thread interference and capturing both determinism and nondeterminism as computational effects. This allows us to present a type and effect system for statically reasoning about determinism in multithreaded programs. Our general framework may be used in multithreaded languages for supporting determinism, or in structured parallel models for supporting threads. Even more sophisticated concurrency models, such as actors, are often implemented on top of an underlying threading model, thus the underlying ideas presented here should be of value in reasoning about the correctness of such implementations.
机译:最近有很多兴趣支持命令式程序中的确定性并行性。结构化并行编程模型已使用类型系统或静态分析来通过约束词汇范围内的任务的潜在干扰来实施确定性。但是,对多线程编程的类似支持仍然是一个悬而未决的问题,在多线程编程中,线程可以随心所欲地产生任意生存期,尤其是在多线程程序中实现确定性和非确定性的模块化和可管理组合。本文提出了一种简单而直观的方法来跟踪线程干扰,并将确定性和非确定性都捕获为计算效果。这使我们能够提供一种类型和效果系统,用于对多线程程序中的确定性进行静态推理。我们的通用框架可以用于支持确定性的多线程语言,也可以用于支持线程的结构化并行模型。甚至更复杂的并发模型(例如参与者)通常是在基础线程模型的基础上实现的,因此,此处提出的基础思想应在推理此类实现的正确性时具有价值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号