18 [[nodiscard]] std::string_view
name() const noexcept override;
Abstract clock interface for simulation time.
Strategy interface for scheduling algorithms.
Shortest Process Next (SPN) scheduling policy.
bool shouldPreempt(const SchedulingProcessSnapshot &running, const SchedulingProcessSnapshot &candidate, const IClock &clock) const override
SPN does not preempt once a process is running.
std::string_view name() const noexcept override
Policy name.
ProcessId selectNext(const std::vector< SchedulingProcessSnapshot > &readyQueue, const IClock &clock) const override
Selects process with minimal estimated burst.
ISchedulingPolicy interface for pluggable scheduling algorithms.
std::uint32_t ProcessId
Unique identifier for a process.
Immutable process view consumed by scheduling policies.