首页> 外文会议>WoTUG technical meeting >XCHANs: Notes on a New Channel Type
【24h】

XCHANs: Notes on a New Channel Type

机译:Xchans:关于新频道类型的注意事项

获取原文

摘要

This paper proposes a new channel type, XCHAN, for communicating messages between a sender and receiver. Sending on an XCHAN is asynchronous, with the sending process informed as to its success. XCHANs may be buffered, in which case a successful send means the message has got into the buffer. A successful send to an unbuffered XCHAN means the receiving process has the message. In either case, a failed send means the message has been discarded. If sending on an XCHAN fails, a built-in feedback channel (the x-channel, which has conventional channel semantics) will signal to the sender when the channel is ready for input (i.e., the next send will succeed). This x-channel may be used in a select or ALT by the sender side (only input guards are needed), so that the sender may passively wait for this notification whilst servicing other events. When the x-channel signal is taken, the sender should send as soon as possible - but it is free to send something other than the message originally attempted (e.g. some freshly arrived data). The paper compares the use of XCHAN with the use of output guards in select/ALT statements. XCHAN usage should follow a design pattern, which is also described. Since the XCHAN never blocks, its use contributes towards deadlock-avoidance. The XCHAN offers one solution to the problem of overflow handling associated with a fast producer and slow consumer in message passing systems. The claim is that availability of XCHANs for channel based systems gives the designer and programmer another means to simplify and increase quality.
机译:本文提出了一种新的频道类型xchan,用于在发件人和接收器之间传送消息。发送在Xchan是异步的,发送过程有人知道它的成功。可以缓冲XChans,在这种情况下,成功发送意味着该消息已进入缓冲区。成功发送到无缓冲的Xchan表示接收过程具有消息。在任何一种情况下,失败的发送方式都丢弃了消息。如果在XChan上发送失败,则当通道准备输入时,内置反馈信道(具有传统信道语义)的内置反馈信道(具有传统信道语义)的发信号通知(即,下一个发送将成功)。该X频道可以由发送方(仅需要输入警察)的SELECT或ALT中使用,使得发送方可以被动地等待该通知,而在提供其他事件。当拍摄X频道信号时,发件人应尽快发送 - 但是可以自由地发送除了最初尝试的消息以外的内容(例如,新近到达数据)。本文将Xchan的使用与在SELECT / ALT语句中使用输出后卫进行比较。 Xchan用法应遵循设计模式,也应描述。由于Xchan从不阻止,它的使用促进了避免死锁。 Xchan提供了一个解决方案,可以解决与快速生产者和慢消费者相关联的溢流处理问题。索赔是基于频道系统的XChans的可用性为设计者和程序员提供了另一种方法来简化和提高质量。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号