How besteaydogan/rtos-simulation works
VisuaLearnRtos is an interactive RTOS teaching dashboard. A learner selects a case and adjusts its parameters or mitigation; the React app initializes case state, advances deterministic simulation rules, and presents task, queue, mutex, event, and timeline state. The cases cover scheduling, producer-consumer queues, priority inversion, deadlock, ADAS integration, and shared network-driver backpressure. Shared task, queue, mutex, scheduling, and history primitives support the simulations. CS3 and CS4 also have documented standalone teaching labs. Core wiring is supported by excerpts and the SOURCE INDEX; standalone lab behavior is documented in the README, not sampled source.
Main entry points: rules.js Simulation dispatcher · App.jsx Interactive dashboard · main.jsx React entry · cases.js Case presets
Components 15
Learning interface
- Interactive dashboard
RtosSim/src/App.jsx - React entry
RtosSim/src/main.jsx
Simulation scenarios
- Case presets
RtosSim/src/sim/cases.js - Scheduling and starvation
RtosSim/src/sim/rules.js - Producer-consumer queues
RtosSim/src/sim/rules.js - Priority inversion
RtosSim/src/sim/rules.js - Deadlock recovery
RtosSim/src/sim/rules.js - ADAS integration
RtosSim/src/sim/rules.js - Network backpressure
RtosSim/src/sim/rules.js
Simulation runtime
- Simulation dispatcher
RtosSim/src/sim/rules.js - Task and resource primitives
RtosSim/src/sim/core.js - Simulation history
RtosSim/src/sim/core.js
Standalone labs
- Priority inversion lab
RtosSim/public/cases/priority.html - Deadlock lab
RtosSim/public/cases/deadlock.html
Other components
- Learner
Connections 15
- Learner → React entry: opens app
README.md - React entry → Interactive dashboard: renders
RtosSim/src/main.jsx - Interactive dashboard → Case presets: creates case state
RtosSim/src/App.jsx - Interactive dashboard → Simulation dispatcher: advances simulation
RtosSim/src/App.jsx - Case presets → Task and resource primitives: creates tasks and resources
RtosSim/src/sim/cases.js - Simulation dispatcher → Task and resource primitives: uses simulation operations
RtosSim/src/sim/rules.js - Simulation dispatcher → Simulation history: captures history
RtosSim/src/sim/rules.js - Simulation dispatcher → Scheduling and starvation: dispatches case steps
RtosSim/src/sim/rules.js - Simulation dispatcher → Producer-consumer queues: dispatches case steps
RtosSim/src/sim/rules.js - Simulation dispatcher → Priority inversion: dispatches case steps
RtosSim/src/sim/rules.js - Simulation dispatcher → Deadlock recovery: dispatches case steps
RtosSim/src/sim/rules.js - Simulation dispatcher → ADAS integration: dispatches case steps
RtosSim/src/sim/rules.js - Simulation dispatcher → Network backpressure: dispatches case steps
RtosSim/src/sim/rules.js - Learner → Priority inversion lab: opens standalone lab
README.md - Learner → Deadlock lab: opens standalone lab
README.md