Abstract
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.
Original language | English |
---|---|
Title of host publication | 22nd Euromicro International Conference on Parallel, Distributed and Network-Based Processing (PDP 2014) |
Place of Publication | Piscataway, NJ |
Publisher | IEEE |
Pages | 725-733 |
Number of pages | 9 |
ISBN (Electronic) | 978-1-4799-2729-6 |
DOIs | |
Publication status | Published - 12 Feb 2014 |
Event | 22nd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing, PDP 2014 - Turin, Italy Duration: 12 Feb 2014 → 14 Feb 2014 Conference number: 22 |
Publication series
Name | Proceedings Euromicro International Conference on Parallel, Distributed, and Network-Based Processing |
---|---|
Publisher | IEEE Computer Society |
Volume | 2014 |
ISSN (Print) | 1066-6192 |
Conference
Conference | 22nd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing, PDP 2014 |
---|---|
Abbreviated title | PDP |
Country/Territory | Italy |
City | Turin |
Period | 12/02/14 → 14/02/14 |
Keywords
- Separation logic
- Java
- Synchronisation
- Formal verification
- Formal specification
- Concurrency