#include <scheduler.hpp>
◆ CFS()
◆ ~CFS()
◆ addToReadyQueue()
bool CFS::addToReadyQueue |
( |
std::unique_ptr< Process > & |
process, |
|
|
time_unit |
currentTime = -1 |
|
) |
| |
|
virtual |
This function represents the addition of a newly arrived process to the ready queue.
- Parameters
-
process | The process to add |
currentTime | The simulation time when the process arrived, i.e., now |
Implements Scheduler.
◆ schedule()
This function represents moving forward by a single unit in time.
- Parameters
-
currentTime | The current simulation time |
logger | The Logger instance to use for event logging |
quantum | The time quantum (if required by the scheduler) |
- Returns
- std::vector<std::unique_ptr<Process>> The list of scheduled processes till now
Implements Scheduler.
The documentation for this class was generated from the following files: