How freakshowzzz/fcfs-simulator works
This browser-based FCFS Scheduling Simulator lets users add, edit, and remove processes, then run a first-come-first-served schedule and inspect its timeline, per-process results, averages, explanations, and insight. The main script owns process state and button/event handling; it calls the pure scheduling algorithm and passes its outcome to separate UI renderers. The README documents the page’s CSS and script loading. The sampled source shows the runtime calls; the README supplies the page-link relationships.
Main entry points: main.js Event and state handler · index.html Page structure · style.css Responsive styling · fcfs.js FCFS scheduler
Components 12
Page and styling
- Page structure
index.html - Responsive styling
css/style.css
Simulation control
- Event and state handler
js/main.js - Process list
js/main.js
FCFS scheduling
- FCFS scheduler
js/fcfs.js
Results presentation
- Process table
js/ui.js - Gantt chart
js/ui.js - Process results
js/ui.js - Summary statistics
js/ui.js - Process explanations
js/ui.js - Scheduling insight
js/ui.js
Other components
- User
Connections 11
- User → Event and state handler: clicks controls
js/main.js - Page structure → Responsive styling: links stylesheet
README.md - Page structure → Event and state handler: loads scripts
README.md - Event and state handler → Process list: updates
js/main.js - Event and state handler → Process table: renders table
js/main.js - Event and state handler → FCFS scheduler: runs schedule
js/main.js - Event and state handler → Gantt chart: renders timeline
js/main.js - Event and state handler → Process results: renders results
js/main.js - Event and state handler → Summary statistics: renders summary
js/main.js - Event and state handler → Process explanations: renders explanations
js/main.js - Event and state handler → Scheduling insight: renders insight
js/main.js