|
contur2
|
Shortest Process Next (SPN) scheduling policy. More...
#include <spn_policy.h>


Public Member Functions | |
| std::string_view | name () const noexcept override |
| Policy name. | |
| ProcessId | selectNext (const std::vector< std::reference_wrapper< const PCB > > &readyQueue, const IClock &clock) const override |
| Selects process with minimal estimated burst. | |
| bool | shouldPreempt (const PCB &running, const PCB &candidate, const IClock &clock) const override |
| SPN does not preempt once a process is running. | |
| Public Member Functions inherited from contur::ISchedulingPolicy | |
| virtual | ~ISchedulingPolicy ()=default |
Shortest Process Next (SPN) scheduling policy.
Selects the ready process with the smallest predicted CPU burst. SPN is non-preemptive.
Definition at line 14 of file spn_policy.h.
|
nodiscardoverridevirtualnoexcept |
Policy name.
Implements contur::ISchedulingPolicy.
|
nodiscardoverridevirtual |
Selects process with minimal estimated burst.
Implements contur::ISchedulingPolicy.
|
nodiscardoverridevirtual |
SPN does not preempt once a process is running.
Implements contur::ISchedulingPolicy.