How dhruvaggarwal419/an-operating-system-simulator works
This is an educational Streamlit operating-system simulator. Users choose a module in the navigation app, enter algorithm-specific inputs, and view results or visualizations. The principal workflow branches into process scheduling, disk scheduling, memory allocation, deadlock safety, and page replacement; a documentation view explains OS concepts. Process scheduling also compares scheduling metrics and produces Gantt-style charts. A chatbot implementation and C++ algorithm sources are present, though the chatbot is not wired into the app navigation. Some imported runtime modules and the memory backing file are absent from the tree, so their internals are not represented.
Main entry points: app.py Streamlit Navigation · process_scheduling_python.py Scheduling Interface · chatbot.py Chatbot Interface · process_scheduling.cpp Scheduling Algorithms
Components 13
Application
- Streamlit Navigation
app.py
Process Scheduling
- Scheduling Interface
process_scheduling_python.py - Scheduling Algorithms
process_scheduling.cpp - Chart Algorithms
process_scheduling_chart.cpp
Memory Concepts
- Memory Allocation
memory_management_python.py - C++ Allocation
memory_management.cpp
Other Simulations
- Disk Scheduling
disk_scheduling_python.py - Deadlock Checker
deadlock_detection_python.py - Page Replacement
page_fault_python.py
Learning Tools
- OS Documentation
project_documentation.py - Chatbot Interface
chatbot.py
Other components
- Learner
- Gemini API
Connections 11
- Learner → Streamlit Navigation: opens
app.py - Streamlit Navigation → Scheduling Interface: routes to
app.py - Streamlit Navigation → Disk Scheduling: routes to
app.py - Streamlit Navigation → Memory Allocation: routes to
app.py - Streamlit Navigation → Deadlock Checker: routes to
app.py - Streamlit Navigation → Page Replacement: routes to
app.py - Streamlit Navigation → OS Documentation: routes to
app.py - Scheduling Interface → Scheduling Algorithms: runs algorithms
process_scheduling_python.py - Scheduling Interface → Chart Algorithms: gets chart data
process_scheduling_python.py - Learner → Chatbot Interface: chats with
chatbot.py - Chatbot Interface → Gemini API: sends prompt
chatbot.py