构建弱终止接口协议
Constructing Weakly Terminating Interface Protocols
AI总结:
本文提出通过部分镜像关系推导不同使用场景的客户端,使接口协议具备弱终止性,从而避免死锁和活锁问题,并通过开源工具实现理论应用。
摘要:
接口在确定兼容组件组合中起核心作用,通过规定服务提供者(服务器)与消费者(客户端)之间的可接受交互来实现。异步通信系统中的高并发性增加了无意引入死锁和活锁的风险。弱终止性属性作为基本 sanity check 来避免此类问题,确保在每个可达状态中系统都有机会最终终止。本文扩展了现有结果,通过构造确保弱终止性接口组合。我们的扩展使理论在实践中更具应用性。从满足某些性质的服务器接口规范开始,我们展示如何通过部分镜像关系推导出不同使用场景的客户端类别。此外,我们讨论了将这些结果嵌入开源工具中,以指导模型师设计弱终止性接口。
英文摘要:
Interfaces play a central role in determining compatible component compositions by prescribing permissible interactions between a service provider (server) and its consumers (clients). The high degree of concurrency in asynchronous communicating systems increases the risk of unintentionally introducing deadlocks and livelocks. The weak termination property serves as a basic sanity check to avoid such problems. It assures that in each reachable state, the system has the option to eventually terminate. This paper generalizes existing results that, by construction, guarantee weakly terminating interface compositions. Our generalizations make the theory applicable more broadly in practice. Starting with an interface specification of a server satisfying certain properties, we show how a class of clients modeling different usage contexts can be derived using a partial mirroring relation. Furthermore, we discuss an embedding of our results in an open-source tool to guide modelers in designing weakly terminating interfaces.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。