2014 · 11 citations · 14 references
ComputingComputer EngineeringComputer ScienceFormal MethodsOperating SystemsProgramming LanguagesConcurrency ControlConcurrency VerificationConcurrent ProgrammingConcurrent System VerificationData SynchronizationSynchronization PrimitivesConcurrency PrimitivesConcurrent Program VerificationFormal SpecificationsSeparation LogicSynchronizationSynchronization SemanticsVerification Of Concurrent Programs
This paper discusses formal specification and verification of the synchronisation classes of the Java API. In many verification systems for concurrent programs, synchronisation is treated as a primitive operation. As a result, verification rules for synchronisation are hard-coded in the logic, and not verified. These rules describe the concrete semantics of the given synchronisation primitive, and manage how resources are protected by synchronisation. In contrast, this paper describes several synchronisation primitives at the specification level, by specifying the behaviour of synchronisation routines from the Java API at method level using permission-based Separation Logic. This gives a generalised, high-level, and easily extendable approach to formalisation of arbitrary synchronisation mechanisms, which allows for modular treatment of synchronisation in verification. Notably, our approach does not only apply to locks, but also to other synchronisation mechanisms such as semaphores and latches that we also discuss. Finally, we used the verification tool that we are developing and successfully verified (so far simplified) implementations of all presented synchronisers, the paper discusses the verification of one of them.
14
Separation logic: a logic for shared mutable data structures
John Reynolds · 2003 · 2.2K citations
Resources, concurrency, and local reasoning
Peter W. O’Hearn · Theoretical Computer Science · 2007 · 558 citations
Doug Lea · 2000 · 452 citations
The Qualitas Corpus: A Curated Collection of Java Code for Empirical Studies
Ewan Tempero, Craig Anslow, Jens Dietrich et al. · 2010 · 416 citations · Full text