Illustration of a Parallel and Discrete Event Simulator using Scala
A Beulah Evanjalin, R. Saranya, Kiran Kumar Kondru · 2021
Discrete-event Simulation has been used widely in academia as well as in the industry in different areas. However, Discrete-event Simulation (DES) has severe limitations as it is designed to work on a single processor as a single process. With Moore’s Law coming to an end, the designers of processors embed more cores on a single processor. A standard DES cannot take advantage of multiple cores. Parallel Discrete Event Simulators (PDES) take advantage of multiple cores in modern processors. However, the design and implementation of a simulation scenario as a PDES is challenging to achieve. The challenge is to synchronise the execution of various processes and to make them communicate with each other. This paper attempts to create a simple PDES to describe the Simulation of multiple lifts in Scala. We demonstrate the ease and flexibility of Scala in designing and developing a simulation using multi-threading architecture.