JOURNAL ARTICLE

SPaDES/Java: object-oriented parallel discrete-event simulation

Abstract

We describe the design, implementation and performance optimizations of SPaDES/Java, a process-oriented discrete-event simulation library in Java that supports sequential and parallel simulation. Parallel event synchronization is facilitated through a hybrid carrier-null, demand-driven flushing conservative null message mechanism. Inter-processor message communication is coordinated by a shared persistent memory implemented using Java Jini/JavaSpaces. We present the stepwise performance optimizations we have carried out, focusing mainly on reducing the cost of multithreading, null message synchronization overhead, and the cost of inter-processor communication. Two benchmark programs consisting of an open linear pipeline system and PHOLD representing a closed system are used. For PHOLD(16/spl times/6, 16), our optimization reduces the null message ratio from 0.94 to 0.29 on eight processors. Based on our time and space instrumentation, we observed that the memory cost of null message synchronization accounts for less than 10% of the total memory required by the PHOLD simulation.

Keywords:
Computer science Java Parallel computing Discrete event simulation Synchronization (alternating current) Benchmark (surveying) Multithreading Overhead (engineering) Null (SQL) Event (particle physics) strictfp Embedded Java Java concurrency Distributed computing Operating system Real time Java Simulation Computer network

Metrics

8
Cited By
1.59
FWCI (Field Weighted Citation Impact)
26
Refs
0.84
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Simulation Techniques and Applications
Social Sciences →  Decision Sciences →  Management Science and Operations Research
Traffic control and management
Physical Sciences →  Engineering →  Control and Systems Engineering
Distributed and Parallel Computing Systems
Physical Sciences →  Computer Science →  Computer Networks and Communications
© 2026 ScienceGate Book Chapters — All rights reserved.