18 [[nodiscard]] std::string_view
name() const noexcept override;
22 const std::vector<std::reference_wrapper<const
PCB>> &readyQueue, const
IClock &clock
First Come First Served (FCFS) scheduling policy.
ProcessId selectNext(const std::vector< std::reference_wrapper< const PCB > > &readyQueue, const IClock &clock) const override
Selects the next process in FCFS order.
bool shouldPreempt(const PCB &running, const PCB &candidate, const IClock &clock) const override
FCFS never preempts the currently running process.
std::string_view name() const noexcept override
Policy name.
Abstract clock interface for simulation time.
Strategy interface for scheduling algorithms.
Process Control Block — stores all metadata for a single process.
ISchedulingPolicy interface for pluggable scheduling algorithms.
std::uint32_t ProcessId
Unique identifier for a process.