Safe and Verifiable Design of Concurrent Java Programs

P.H. Welch, G.H. Hilderink, A.W.P. Bakkers, G.S. Stiles

    Research output: Contribution to journalArticleAcademicpeer-review

    82 Downloads (Pure)

    Abstract

    The design of concurrent programs has a reputation for being difficult, and thus potentially dangerous in safetycritical real-time and embedded systems. The recent appearance of Java, whilst cleaning up many insecure aspects of OO programming endemic in C++, suffers from a deceptively simple threads model that is an insecure variant of ideas that are over 25 years old [1]. Consequently, we cannot directly exploit a range of new CASE tools -- based upon modern developments in parallel computing theory -- that can verify and check the design of concurrent systems for a variety of dangers such as deadlock and livelock that otherwise plague us during testing and maintenance and, more seriously, cause catastrophic failure in service. Our approach uses recently developed Java class libraries based on Hoare's Communicating Sequential Processes (CSP); the use of CSP greatly simplifies the design of concurrent systems and, in many cases, a parallel approach often significantly simplifies systems originally approached sequentially. New CSP CASE tools permit designs to be verified against formal specifications and checked for deadlock and livelock. Below we introduce CSP and its implementation in Java and develop a small concurrent application. The formal CSP description of the application is provided, as well as that of an equivalent sequential version. FDR is used to verify the correctness of both implementations, their equivalence, and their freedom from deadlock and livelock.
    Original languageEnglish
    Pages (from-to)159-165
    Number of pages6
    JournalInternational journal of computers and applications
    Volume23
    Issue number3
    DOIs
    Publication statusPublished - 2001

    Fingerprint Dive into the research topics of 'Safe and Verifiable Design of Concurrent Java Programs'. Together they form a unique fingerprint.

    Cite this