线程间协议的模块化和可重用性
Modularizing and Specifying Protocols among Threads
摘要:
我们确定了三个问题,目前的技术实现线程之间的协议,复杂化和损害的可扩展性的多核软件开发:实现同步,实现协调,和模块化协议。为了弥补这些不足,我们主张使用域特定语言(DSL)的基础上现有的并发模型。为了证明这一建议的可行性,我们解释了如何使用并发Reo模型作为一个高层次的协议DSL,它提供了适当的抽象和协议和计算的自然分离。我们描述了一个Reo-to-Java编译器,并通过示例说明了它的使用。
英文摘要:
We identify three problems with current techniques for implementing protocols among threads, which complicate and impair the scalability of multicore software development: implementing synchronization, implementing coordination, and modularizing protocols. To mend these deficiencies, we argue for the use of domain-specific languages (DSL) based on existing models of concurrency. To demonstrate the feasibility of this proposal, we explain how to use the model of concurrency Reo as a high-level protocol DSL, which offers appropriate abstractions and a natural separation of protocols and computations. We describe a Reo-to-Java compiler and illustrate its use through examples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。