|
contur2
|
Shortest Remaining Time (SRT) scheduling policy. More...
#include <srt_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 the shortest remaining burst. | |
| bool | shouldPreempt (const PCB &running, const PCB &candidate, const IClock &clock) const override |
| Preempts when candidate has smaller remaining burst. | |
| Public Member Functions inherited from contur::ISchedulingPolicy | |
| virtual | ~ISchedulingPolicy ()=default |
Shortest Remaining Time (SRT) scheduling policy.
Selects process with minimal remaining estimated CPU burst and allows preemption by shorter candidates.
Definition at line 14 of file srt_policy.h.
|
nodiscardoverridevirtualnoexcept |
Policy name.
Implements contur::ISchedulingPolicy.
|
nodiscardoverridevirtual |
Selects process with the shortest remaining burst.
Implements contur::ISchedulingPolicy.
|
nodiscardoverridevirtual |
Preempts when candidate has smaller remaining burst.
Implements contur::ISchedulingPolicy.