首页> 外文会议>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上发送是异步的,发送过程会告知其成功。 XCHAN可能被缓冲,在这种情况下,成功发送意味着消息已进入缓冲区。成功发送到无缓冲的XCHAN意味着接收进程已收到该消息。无论哪种情况,发送失败都意味着该消息已被丢弃。如果在XCHAN上发送失败,则当通道准备好输入时(即下一次发送将成功),内置反馈通道(具有常规通道语义的x通道)将向发送方发送信号。发送方可以在select或ALT中使用此x通道(仅需要输入保护),以便发送方可以在服务其他事件的同时被动地等待此通知。收到x通道信号后,发送方应尽快发送-但可以自由发送除最初尝试的消息以外的其他内容(例如一些新到达的数据)。本文将XCHAN的使用与select / ALT语句中的输出保护的使用进行了比较。 XCHAN的用法应遵循一种设计模式,并对此进行了描述。由于XCHAN永远不会阻塞,因此它的使用有助于避免死锁。 XCHAN为与消息传递系统中的快速生产者和缓慢消耗者相关的溢出处理问题提供了一种解决方案。声称基于通道系统的XCHAN的可用性为设计人员和程序员提供了另一种简化和提高质量的方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号