pith. sign in

arxiv: 1501.05338 · v2 · pith:6BYL2HIMnew · submitted 2015-01-21 · 💻 cs.PL

Semantics for Locking Specifications

classification 💻 cs.PL
keywords annotationssemanticsdisciplineguardedbylockingactualaidsalready
0
0 comments X
read the original abstract

To prevent concurrency errors, programmers need to obey a locking discipline. Annotations that specify that discipline, such as Java's @GuardedBy, are already widely used. Unfortunately, their semantics is expressed informally and is consequently ambiguous. This article highlights such ambiguities and formalizes the semantics of @GuardedBy in two alternative ways, building on an operational semantics for a small concurrent fragment of a Java-like language. It also identifies when such annotations are actual guarantees against data races. Our work aids in understanding the annotations and supports the development of sound formal tools that verify or infer such annotations.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.