How himanishpuri/uct401 works
Project type and purpose
• This is a C++ console application (an educational “open-source tool”) that implements five CPU scheduling algorithms (FCFS, SJF, Round Robin, Priority, SRTF) for an Operating Systems course.
• Its primary components are a command-line interface (main.cpp), a scheduling engine (OperatingSystemLab), individual algorithm implementations (in src), and a logging utility.
File structure
• Top level
• CMakeLists.txt – build & configuration
• main.cpp – application entrypoint / CLI
• /OperatingSystemLab.h + src/OperatingSystemLab.cpp – core engine
• util/logger.h + util/logger.cpp – logging utility
• Pattern
• Monolithic process, subdivided into modules (CLI, engine, algorithms, logger)
• Algorithm implementations live inside OperatingSystemLab (could be viewed as a Strategy pattern)
README for additional insights
• The README confirms usage of CMake to configure/build, then runs a single executable that presents or runs algorithms.
• No external services or databases—pure in-memory computation.