|
Scheduler Sim
A CPU Scheduling Algorithm Simulator in C++.
|
#include <scheduler.hpp>
Public Member Functions | |
| RR () | |
| A Round Robin (RR) scheduler. | |
| ~RR () | |
| std::vector< std::unique_ptr< Process > > | schedule (time_unit ¤tTime, std::shared_ptr< Logger > logger, time_unit quantum) |
| This function represents moving forward by a single unit in time. | |
| bool | addToReadyQueue (std::unique_ptr< Process > &process, time_unit currentTime) |
| This function represents the addition of a newly arrived process to the ready queue. | |
| RR::RR | ( | ) |
A Round Robin (RR) scheduler.
| RR::~RR | ( | ) |
This function represents the addition of a newly arrived process to the ready queue.
| process | The process to add |
| currentTime | The simulation time when the process arrived, i.e., now |
Implements Scheduler.
|
virtual |
This function represents moving forward by a single unit in time.
| currentTime | The current simulation time |
| logger | The Logger instance to use for event logging |
| quantum | The time quantum (if required by the scheduler) |
Implements Scheduler.