|
contur2
|
Dynamic-priority scheduling policy. More...
#include <priority_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 highest effective priority. | |
| bool | shouldPreempt (const PCB &running, const PCB &candidate, const IClock &clock) const override |
| Preempts when candidate priority outranks running process. | |
| Public Member Functions inherited from contur::ISchedulingPolicy | |
| virtual | ~ISchedulingPolicy ()=default |
Dynamic-priority scheduling policy.
Selects process with best effective priority and supports preemption when a higher-priority candidate becomes ready.
Definition at line 14 of file priority_policy.h.
|
nodiscardoverridevirtualnoexcept |
Policy name.
Implements contur::ISchedulingPolicy.
|
nodiscardoverridevirtual |
Selects process with highest effective priority.
Implements contur::ISchedulingPolicy.
|
nodiscardoverridevirtual |
Preempts when candidate priority outranks running process.
Implements contur::ISchedulingPolicy.