首页> 外文期刊>Journal of Functional Programming >Correspondence assertions for process synchronization in concurrent communications
【24h】

Correspondence assertions for process synchronization in concurrent communications

机译:并发通信中流程同步的对应声明

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

摘要

High-level specification of patterns of communications such as protocols can be modeled elegantly by means of session types (Honda et al., 1998). However, a number of examples suggest that session types fall short when finer precision on protocol specification is required. In order to increase the expressiveness of session types we appeal to the theory of correspondence assertions (Clarke & Marrero, 1998; Gordon & Jeffrey, 2003b). The resulting type discipline augments the types of long-term channels with effects and thus yields types which may depend on messages read or written earlier within the same session. This new type system can be used to check: 1. source of information, 2. whether data is propagated as specified across multiple parties, 3. if there are unspecified communications between parties, and 4. if the data being exchanged has been modified by the code in an unspecified way. We prove that evaluation preserves typability and that well-typed processes are safe. Also, we illustrate how the resulting theory allows us to address shortcomings present in the pure theory of session types.
机译:诸如会话之类的通信模式的高级规范可以通过会话类型进行优雅地建模(Honda等,1998)。但是,许多示例表明,当需要在协议规范上具有更高的精度时,会话类型将不足。为了提高会话类型的表现力,我们呼吁对应声明理论(Clarke&Marrero,1998; Gordon&Jeffrey,2003b)。产生的类型规则增加了具有效果的长期渠道的类型,因此产生的类型可能取决于同一会话中较早读取或写入的消息。这种新型系统可用于检查:1.信息源; 2.数据是否按指定的方式在多方之间传播; 3.方之间是否存在未指定的通信;以及4.交换的数据是否已被修改?代码未指定。我们证明评估可以保留可打字性,并且类型正确的流程是安全的。另外,我们说明了由此产生的理论如何使我们能够解决会话类型的纯理论中存在的缺点。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号