CompletedJava / LTSA

Concurrent Multithreaded Systems & Formal Verification

A suite of multithreaded Java systems pairing thread-safe packet dispatching and parallel matrix multiplication with formal deadlock verification in LTSA.

Verification:LTSA State Machine
Buffers:Thread-Safe Rendezvous
Speedup:Multi-Core Matrix

Overview

Practical multithreaded Java systems paired with mathematical state-space model checking to guarantee absence of deadlocks.

The Problem

Shared-memory concurrency defects like race conditions and deadlocks often hide from standard unit tests because execution depends on OS thread scheduling.

Architecture & Implementation

Built three synchronized Java 17 subsystems (PacketDispatcher, MatrixMultiplier, and producer-consumer monitors) alongside matching Finite State Process (FSP) models checked exhaustively in LTSA.

Key Challenges Solved

  • Designing bounded queues that wake waiting producers and consumers reliably without missed signals.
  • Keeping FSP formal state models strictly aligned with actual Java synchronized blocks.
  • Partitioning matrix workloads to avoid false sharing across threads.

Outcomes & Verification

  • Mathematically verified deadlock freedom and mutual exclusion across all modeled thread interactions.
  • Measured multi-core throughput improvements on parallel matrix multiplication workloads.