A closer look at process-based simulation with stackless coroutines

被引:1
|
作者
Weber, Dorian [1 ]
Wiesner, Paula [1 ]
Fischer, Joachim [1 ]
机构
[1] Humboldt Univ, Unter Linden 6, D-10117 Berlin, Germany
关键词
Discrete-event simulation; Benchmark; Process; Coroutine; RUST; SLX; C plus;
D O I
10.1016/j.infsof.2021.106695
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context Validating discrete-event computer simulations for a particular problem domain often involves the help of a domain expert. This means that a certain structural closeness between the simulator's inner workings and the modeled system is needed in order to allow the expert to follow the implementation in analogy. Process-based simulation imposes an object-oriented view onto a modeled system which allows for a high degree of structural closeness in most cases. In comparison, event-based simulation requires a procedural definition with a relatively low degree of structural closeness for many cases, but outperforms the process-based approach both in terms of performance and portability. Recent advances in compiler technology have introduced a portable way of rewriting thread-based code into event-based code, effectively providing the means to implement portable green-threads in compiled system languages. Objective This work aims to cover the historical, mechanical, and implementation specific aspects as well as practical measurements of runtime performance of a library based solution to process-based discrete-event simulation in comparison to alternative solutions. Method We explain how to use the stackless coroutines introduced into the Rust programming language to implement a minimal simulator core and discuss aesthetic as well as performance implications through systematic benchmarking using the three simulation scenarios Barbershop, Car Ferry and Dining Philosophers by comparing their implementations to equivalent ones in the simulation language SLX and the C++ library ODEMx. Results Our results indicate that stackless coroutines enable structurally equivalent formulations to pure process-based simulations while still delivering close to equivalent or - depending on the use-case - even superior performance and portability compared to the aforementioned solutions. Conclusion We show that stackless coroutines can be used to bridge the gap between process- and event-based simulators, affording modelers a level of abstraction close to the former approach while delivering the performance and portability of the latter one.
引用
收藏
页数:18
相关论文
共 50 条
  • [1] A model for process-based crash simulation
    Lademo, O. -G.
    Berstada, T.
    Eriksson, M.
    Tryland, T.
    Furu, T.
    Hopperstad, O. S.
    Langseth, M.
    INTERNATIONAL JOURNAL OF IMPACT ENGINEERING, 2008, 35 (05) : 376 - 388
  • [2] Process-based simulation of prairie growth
    Zilverberg, Cody J.
    Williams, Jimmy
    Jones, Curtis
    Harmoney, Keith
    Angerer, Jay
    Metz, Loretta J.
    Fox, William
    ECOLOGICAL MODELLING, 2017, 351 : 24 - 35
  • [3] Parallel execution of process-based simulation models
    Whitehurst, RA
    Brutocao, J
    OBJECT-ORIENTED SIMULATION CONFERENCE (OOS'98) AND THE INTERNATIONAL CONFERENCE ON SIMULATION AND MULTIMEDIA IN ENGINEERING EDUCATION (ICSEE'98), PROCEEDINGS OF, 1998, : 115 - 120
  • [4] Process-based simulation models and plant phenotyping
    Genard, M.
    Bevacqua, D.
    Lescourret, F.
    III INTERNATIONAL SYMPOSIUM ON HORTICULTURE IN EUROPE (SHE2016), 2019, 1242 : 719 - 722
  • [5] CLOSER LOOK AT A MATCHING SIMULATION - REPLY
    KALICK, SM
    HAMILTON, TE
    JOURNAL OF PERSONALITY AND SOCIAL PSYCHOLOGY, 1988, 54 (03) : 447 - 451
  • [6] A CLOSER LOOK AT THE HEALTHY GRIEVING PROCESS
    DAVENPORT, DS
    PERSONNEL AND GUIDANCE JOURNAL, 1981, 59 (06): : 332 - 335
  • [7] PROCESS-BASED SIMULATION LIBRARY FOR CONSTRUCTION PROJECT PLANNING
    Scherer, Raimar
    Ismail, Ali
    PROCEEDINGS OF THE 2011 WINTER SIMULATION CONFERENCE (WSC), 2011, : 3488 - 3499
  • [8] A Process-Based Reconfigurable SystemC Module for Simulation Speedup
    Sotiriou-Xanthopoulos, Efstathios
    Siozios, Kostas
    Economakos, George
    Soudris, Dimitrios
    2013 INTERNATIONAL CONFERENCE ON EMBEDDED COMPUTER SYSTEMS: ARCHITECTURES, MODELING AND SIMULATION (IC-SAMOS), 2013, : 72 - 79
  • [9] Gaussian Process-based calculation of look-elsewhere trials factor
    Ananiev, V.
    Read, A. L.
    JOURNAL OF INSTRUMENTATION, 2023, 18 (05)
  • [10] A closer look at an aggregation model of the Stober process
    Lee, KT
    Sathyagal, AN
    McCormick, AV
    COLLOIDS AND SURFACES A-PHYSICOCHEMICAL AND ENGINEERING ASPECTS, 1998, 144 (1-3) : 115 - 125