Kent Academic Repository (University of Kent) · 2000 · 25 citations · 6 references
Open access
ComputingComputer EngineeringComputer ScienceDistributed SystemsFormal MethodsProgramming LanguagesConcurrency AnalysisConcurrency ControlConcurrent ProgrammingConcurrent System VerificationModel CheckingSynchronization PrimitivesConcurrent Program VerificationCsp ModellingModel Checking For ConcurrencyMonitor-based ConcurrencyProcess Synchronization PrimitivesRace Condition AnalysisRace Condition DetectionVerification Of Concurrent Programs
Abstract. Java threads are synchronised through primitives based upon monitor concepts developed in the early 1970s. The semantics of Java’s primitives have only been presented in natural language – this paper remedies this with a simple and formal CSP model. In view of the difficulties encountered in reasoning about any non-trivial interactions between Java threads, being able to perform that reasoning in a formal context (where careless errors can be highlighted by mechanical checks) should be a considerable confidence boost. Further, automated model-checking tools can be used to root out dangerous states (such as deadlock and livelock), find overlooked race hazards and prove equivalence between algorithms (e.g. between optimised and unoptimised versions). A case study using the CSP model to prove the correctness of the JCSP and CTJ channel implementations (which are built using standard Java monitor synchronisation) is presented. In addition, the JCSP mechanism for ALTing (i.e. waiting for and, then, choosing between multiple events) is verified. Given the history of erroneous implementations of this key primitive, this is a considerable relief.
6
Tony Hoare · Communications of the ACM · 1981 · 182 citations
Richard E. Stearns · Communications of the ACM · 1994 · 64 citations · Full text
Gerald H. Hilderink, Johannes F. Broenink, Wiek Vervoort et al. · University of Twente Research Information · 1997 · 61 citations · Full text
A CSP model for Java multithreading
Welch · 2000 · 50 citations