共享读取同步器的验证
Verification of Shared-Reading Synchronisers
摘要:
同步类是共享内存并发程序的重要组成部分。因此,要对这些程序进行推理,重要的是能够验证这些同步类的实现,将原子操作视为构建实现的同步原语。对于控制对诸如锁的共享资源的独占访问的同步类,已经提出了一种技术来推理它们的行为。本文提出了一种技术来验证实现的独占访问和共享读取同步。我们使用基于权限的分离逻辑来描述主要原子操作的行为,我们的技术的基础是由类Atomicallo的规范形成的,它通常用于在java.util.concurrent中实现同步类。为了证明我们的方法的适用性,我们机械地验证各种同步类,如信号量,CountDownLatch和锁的实现。
英文摘要:
Synchronisation classes are an important building block for shared memory concurrent programs. Thus to reason about such programs, it is important to be able to verify the implementation of these synchronisation classes, considering atomic operations as the synchronisation primitives on which the implementations are built. For synchronisation classes controlling exclusive access to a shared resource, such as locks, a technique has been proposed to reason about their behaviour. This paper proposes a technique to verify implementations of both exclusive access and shared-reading synchronisers. We use permission-based Separation Logic to describe the behaviour of the main atomic operations, and the basis for our technique is formed by a specification for class AtomicInteger, which is commonly used to implement synchronisation classes in java.util.concurrent. To demonstrate the applicability of our approach, we mechanically verify the implementation of various synchronisation classes like Semaphore, CountDownLatch and Lock.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。