18 [[nodiscard]] std::string_view
name() const noexcept override;
22 const std::vector<std::reference_wrapper<const
PCB>> &readyQueue, const
IClock &clock
Abstract clock interface for simulation time.
Strategy interface for scheduling algorithms.
Process Control Block — stores all metadata for a single process.
Shortest Process Next (SPN) scheduling policy.
bool shouldPreempt(const PCB &running, const PCB &candidate, const IClock &clock) const override
SPN does not preempt once a process is running.
ProcessId selectNext(const std::vector< std::reference_wrapper< const PCB > > &readyQueue, const IClock &clock) const override
Selects process with minimal estimated burst.
std::string_view name() const noexcept override
Policy name.
ISchedulingPolicy interface for pluggable scheduling algorithms.
std::uint32_t ProcessId
Unique identifier for a process.