从同步通信到同步锁的最小转换
Minimal Translations from Synchronous Communication to Synchronizing Locks
摘要:
为了理解大型并发程序设计语言的相对表达能力,我们分析了小进程演算的翻译,这些演算为并发进程的通信和同步建模。源语言SYNCSIMPLE是消息传递并发的最小模型,而目标语言LOCKSIMPLE是共享内存并发的最小模型。前者是进程同步通信的演算,而后者具有同步可变位置(称为锁),其行为类似于二进制信号量。翻译正确性的标准是保持和反映过程的可能终止和必须终止。我们表明,没有正确的组合翻译SYNCSIMPLE LOCKSIMPLE使用一个或两个锁,独立于锁的初始化。我们还表明,有一个正确的翻译,使用三个锁。还考虑了具有不同阻塞行为的锁的变体。
英文摘要:
In order to understand the relative expressive power of larger concurrent programming languages, we analyze translations of small process calculi which model the communication and synchronization of concurrent processes. The source language SYNCSIMPLE is a minimalistic model for message passing concurrency while the target language LOCKSIMPLE is a minimalistic model for shared memory concurrency. The former is a calculus with synchronous communication of processes, while the latter has synchronizing mutable locations - called locks - that behave similarly to binary semaphores. The criteria for correctness of translations is that they preserve and reflect may-termination and must-termination of the processes. We show that there is no correct compositional translation from SYNCSIMPLE to LOCKSIMPLE that uses one or two locks, independent from the initialisation of the locks. We also show that there is a correct translation that uses three locks. Also variants of the locks are taken into account with different blocking behavior.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。