分布式计算:异步接收

发布于 2024-10-08 13:40:22 字数 200 浏览 0 评论 0原文

如果我有一个接收原语,我只是从指定的发送者接收消息,并且我有一个接收所有原语,我从任何发送者接收消息,那么如何将其扩展到实时应用程序?

这是我以前从未注意到的一些课程笔记中的一个问题:)。有什么想法吗?

异步接收是非阻塞接收。

我的想法是,我们可以以某种方式时不时地轮询发件人,以检查是否没有消息丢失??...我不确定。欢迎任何想法:)。

If I have a receive primitive where I simply receive a message from a specified sender and I have a receive-all primitive where I receive from any sender, how can this be extended for real-time applications?

This is a question in some course notes I have that I never noticed before :). Any ideas?

An asynchronous receive is a non-blocking receive.

My idea is that we can somehow poll the sender every now and again to check that no messages are getting lost??... I'm not sure. Any ideas welcomed :).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ˇ宁静的妩媚 2024-10-15 13:40:22

解决方案是使用超时:异步通信中消息可能会丢失,因此如果我们等待消息的时间太长,那么我们应该请求重新发送该消息;可以使用超时来实现此目的。

Solution is to use timeouts: Messages can be lost in asynchronous communication so if we are left waiting on a message for too long then we should request to have it resent; a timeout can be used to achieve this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文