How wahabkhan000/operating-system-simulator works
This console-based operating-system simulator accepts RAM and process parameters, initializes process records and page/frame allocations, and exposes FCFS or Round Robin scheduling choices. Its main routine is the sampled orchestration point; process and CPU modules provide scheduling-related state and queue/algorithm structures, while memory modules model paging and physical frames. The excerpts do not show scheduling dispatch into those structures or a complete simulation/result display, so those links are omitted rather than inferred.
Main entry points: OperatingSystem.cpp Simulation driver · ProcessManagement.cpp Process records and PCB · CPU_Management.cpp FCFS policy · MemoryManagement.cpp Physical memory
Components 10
Simulation setup
- Simulation driver
Operating_System/OperatingSystem.cpp
Process management
- Process records and PCB
Operating_System/ProcessManagement.cpp - Process page tables
Operating_System/ProcessManagement.cpp
CPU scheduling
- CPU and ready queue
Operating_System/CPU_Management.cpp - FCFS policy
Operating_System/CPU_Management.cpp - Round Robin policy
Operating_System/CPU_Management.cpp
Memory management
- Physical memory
Operating_System/MemoryManagement.cpp - Frame tracking
Operating_System/MemoryManagement.cpp - Memory translation state
Operating_System/MemoryManagement.cpp
Other components
- Console user
Connections 7
- Console user → Simulation driver: provides inputs
Operating_System/OperatingSystem.cpp - Simulation driver → Physical memory: configures RAM
Operating_System/OperatingSystem.cpp - Simulation driver → Process records and PCB: initializes processes
Operating_System/OperatingSystem.cpp - Simulation driver → Process page tables: builds page tables
Operating_System/OperatingSystem.cpp - Simulation driver → Frame tracking: allocates frames
Operating_System/OperatingSystem.cpp - Simulation driver → FCFS policy: selects policy
- Simulation driver → Round Robin policy: selects policy