Constructing realtime simulations engine: breaking shared memory limits in high-level scripting languages

Tengku Bidin, Tengku Ezharuddin and Mohd Yasir, Ahmad Azlan and Noor Hisyam, Nur Ain Shabiha and Zulkifli, Nor Farhana and Sauki, Arina (2026) Constructing realtime simulations engine: breaking shared memory limits in high-level scripting languages. Journal of Computing Research and Innovation, 11 (1): 6. pp. 61-71. ISSN 2600-8793

Official URL: https://jcrinn.com/index.php/jcrinn

Identification Number (DOI): 10.24191/jcrinn.v11i1.617

Abstract

In critical applications, particularly in areas of Realtime Simulations, usages of Unix-based Shared Memory (Shared Memory) concepts help greatly in managing the system’s resources, to be called into play at any moment by the other subsystems. The fact that it is memory-based makes inter-process transactions very fast, as befitting the requirements of critical systems. Coupled with some semi-low-level compiled languages like C/C++ that incorporates the Unix Shared Memory easily, Shared Memories formed the very basis of most Realtime Simulations Engines. In modern times however, both the computer Operating System (OS) as well as programming languages have evolved: the former to cater more for distributed processes and global internet communications, while the latter into more rapid proto-typing as well as very high-level hierarchy in the man-machine interface, which resulted in many, many new languages being used, the most popular of which would be Python. In the OS side, issues about integrity, safety and privacy drive OS manufacturers to do away with many would-be leeways in which security issues (or lack thereof) could creep in, and the usage of Shared Memories would be the primeval talking point. In short, while operating systems like Windows and macOS still support shared memory mechanisms (e.g., POSIX SHM, memory-mapped files), these are limited to processes on a single host. Creating true shared-memory spaces across multiple networked systems is no longer natively supported. In this paper, we investigate the constraints of Python’s Shared Memory model in distributed contexts and, realizing of its futility in fully utilizing it, propose four practical alternatives to overcome the hurdles, eventually opting one of them after being convinced that it is the nearest in behaviour to the Shared Memory model. This work serves as a guide for developers and engineers facing similar constraints in using Python for distributed high-frequency data sharing.

Metadata

Item Type: Article
Creators:
Creators
Email / ID Num.
Tengku Bidin, Tengku Ezharuddin
UNSPECIFIED
Mohd Yasir, Ahmad Azlan
UNSPECIFIED
Noor Hisyam, Nur Ain Shabiha
UNSPECIFIED
Zulkifli, Nor Farhana
UNSPECIFIED
Sauki, Arina
UNSPECIFIED
Subjects: Q Science > QA Mathematics > Programming languages (Electronic computers)
Divisions: Universiti Teknologi MARA, Perlis > Arau Campus
Journal or Publication Title: Journal of Computing Research and Innovation
UiTM Journal Collections: UiTM Journals > Journal of Computing Research and Innovation (JCRINN)
ISSN: 2600-8793
Volume: 11
Number: 1
Page Range: pp. 61-71
Keywords: distributed systems, engineering simulation, inter-process communication, multiprocessing, IPC, multiprocessing, shared memory, realtime simulations
Date: 2026
URI: https://ir.uitm.edu.my/id/eprint/135334
Edit Item
Edit Item

Download

[thumbnail of 135334.pdf] Text
135334.pdf

Download (465kB)

ID Number

135334

Indexing

Altmetric
PlumX
Dimensions

Statistic

Statistic details