首页> 外文会议>WoTUG technical meeting >An occam Model of XCHANs
【24h】

An occam Model of XCHANs

机译:Xchans的偶发模型

获取原文

摘要

Oyvind Teig, in, proposed a higher level channel construct (XCHAN) that attempts to reconcile those wedded to asynchronous message passing with the synchronous form in CSP. Sending a message does not block the sender, but the message may not get sent: the sender receives a success/fail result on each send. The XCHAN provides a conventional feedback channel on which it signals when it is ready to take a message. Being ready means that it has space (if it is buffered) or a reading process has committed to take the message (if it is not buffered). Sending to a ready XCHAN always succeeds; sending to an XCHAN that is not ready always fails. The sender can always wait for the signal from the XCHAN (whilst ALTing on, and processing, other events) before sending. We can model an XCHAN by a process in occam-π. Buffered XCHANs are easy. Zero-buffered XCHANs are a little harder, because we need to maintain end-to-end synchronisation. However, OCCam-π's extended input (??) and output (!!) primitives enable the process implementing the XCHAN to be hidden from its users. Unfortunately, extended outputs are not yet in the language, but their semantics can be simulated by making the receiving process read twice and ignore the first (which is just a signal whose taking must commit the reader to its second read). An important message is that sane higher level synchronisation mechanisms are usually not hard to implement efficiently via the low level CSP primitives offered by occam-π. Although not yet measured for XCHANs, it is likely that such simulation in occam-π will have competitive performance with direct implementation elsewhere, occam-π code and documentation for this model is available from, together with the slides from this presentation.
机译:OYVIND TEIG,提出了一个更高级别的频道构造(xchan),该构建体(xchan)试图将那些与CSP中的同步形式传递的异步消息进行协调。发送消息不会阻止发件人,但消息可能无法发送:发件人在每次发送时都会收到成功/失败。 Xchan提供了一种传统反馈信道,它在其准备拍摄消息时发出信号。准备好意味着它具有空间(如果它被缓冲)或读取过程已致力于拍摄消息(如果没有缓冲)。发送给Ready Xchan总是成功;发送到xchan始终始终失败。发件人可以在发送之前始终等待来自Xchan(虽然亮起,而处理,但处理其他事件)的信号。我们可以通过偶尔-π的进程模拟xchan。缓冲XCHAN很容易。零缓冲XChans有点难,因为我们需要保持端到端同步。但是,偶尔-Π的扩展输入(??)和输出(!!)基元启用实现Xchan的进程将从其用户隐藏。不幸的是,扩展输出尚未以语言为单词,但是可以通过使接收过程读取两次并忽略第一个(只是一个信号必须将读者提交到其第二读取的信号)来模拟它们的语义。一个重要的消息是,SANE更高级别的同步机制通常不难以通过由OCCAM-π提供的低级CSP基元有效地实现。虽然尚未测量XChans,但是,在偶尔的情况下,这种模拟将具有竞争性能,在此时的其他地方直接实现,此型号的偶数-Π代码和文档可以从此演示中的幻灯片一起获得。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号