【24h】

Continuations and concurrency

机译:延续与并发

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

摘要

Continuations have proven to be useful for implementing a variety of control structures, including exception handling facilities and breadth-first searching algorithms. However, traditional continuations are not useful in the presence of concurrency, because the notion of the rest of the computation represented by a continuation does not in general make sense. This paper presents a new type of continuation, called a process continuation, that may be used to control tree-structured concurrency. Just as a traditional continuation represents the rest of a computation from a given point in the computation, a process continuation represents the rest of a subcomputation, or process, from a given point in the subcomputation. Process continuations allow nonlocal exits to arbitrary points in the process tree and allow the capture of a subtree of a computation as a composable continuation for later use. Even in the absence of multiple processes, the precise control achievable with process continuations makes them more useful than traditional continuations.

机译:事实证明,延续对于实现各种控制结构(包括异常处理工具和广度优先搜索算法)很有用。但是,在存在并发的情况下,传统的连续性没有用,因为由连续性表示的其余计算概念通常是没有意义的。本文提出了一种新型的连续性,称为流程连续性,可用于控制树结构并发。就像传统的延续表示计算中给定点的其余部分一样,过程延续表示从给定点的子计算过程的其余部分在子计算中。流程连续性允许非本地退出到流程树中的任意点,并允许捕获计算的子树作为可组合的连续性,以供以后使用。即使在没有多个流程的情况下,流程连续实现的精确控制也使它们比传统的连续更加有用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号