How officialnavneetdas/cpu-scheduling-algorithms-simulator-dsa works
This is a Streamlit CPU-scheduling simulator. Users enter or import process definitions, choose an interface and scheduling algorithms, then receive textual traces/statistics, side-by-side comparisons, or an animated execution view. The three GUI modes share a parser and scheduling engine; the README documents support for FCFS, Round Robin, SPN, SRT, HRRN, Feedback, and Aging. The sampled files show these modes invoking the shared engine, but do not expose every algorithm implementation in full.
Main entry points: app.py Streamlit mode router · parser.py Input parser and process model · main.py Scheduling algorithms · gui_raw_io.py Text and file mode
Components 8
Application Entry
- Streamlit mode router
app.py - Text CLI runner
main.py
User Interfaces
- Text and file mode
views/gui_raw_io.py - Algorithm comparison
views/gui_multi_compare.py - Step visualizer
views/gui_single_visualizer.py
Scheduling Engine
- Input parser and process model
parser.py - Scheduling algorithms
main.py
Other components
- Simulator user
Connections 13
- Simulator user → Streamlit mode router: selects mode
app.py - Streamlit mode router → Text and file mode: routes to
app.py - Streamlit mode router → Algorithm comparison: routes to
app.py - Streamlit mode router → Step visualizer: routes to
app.py - Simulator user → Text CLI runner: provides input
README.md - Text CLI runner → Input parser and process model: parses input
main.py - Text CLI runner → Scheduling algorithms: runs algorithms
main.py - Text and file mode → Input parser and process model: parses text
views/gui_raw_io.py - Text and file mode → Scheduling algorithms: runs simulation
views/gui_raw_io.py - Algorithm comparison → Input parser and process model: loads file data
views/gui_multi_compare.py - Algorithm comparison → Scheduling algorithms: runs variants
views/gui_multi_compare.py - Step visualizer → Input parser and process model: loads process data
views/gui_single_visualizer.py - Step visualizer → Scheduling algorithms: runs simulation
views/gui_single_visualizer.py