|
libcosmos
Linux C++ System Programming Library
|
Round Robin Scheduling Policy Settings. More...
#include <Scheduler.hxx>
Inheritance diagram for cosmos::RoundRobinSchedulerSettings:Additional Inherited Members | |
Public Member Functions inherited from cosmos::RealTimeSchedulerSettings | |
| RealTimeSchedulerSettings (const SchedulerPolicy policy) | |
| void | setPriority (const int priority) |
| int | priority () const |
| int | minPriority () const |
| int | maxPriority () const |
Public Member Functions inherited from cosmos::SchedulerSettings | |
| SchedulerSettings (const SchedulerPolicy policy) | |
| SchedulerPolicy | policy () const |
| void | apply (ProcessID pid) const |
| Apply the current scheduler settings to the given process. | |
Protected Member Functions inherited from cosmos::RealTimeSchedulerSettings | |
| void | fillStruct (struct sched_attr &attr) const override |
| Fill the given low level sched_attr struct with the current settings. | |
Protected Member Functions inherited from cosmos::SchedulerSettings | |
Protected Attributes inherited from cosmos::RealTimeSchedulerSettings | |
| int | m_priority = 0 |
Protected Attributes inherited from cosmos::SchedulerSettings | |
| SchedulerPolicy | m_policy = SchedulerPolicy::INVALID |
Round Robin Scheduling Policy Settings.
RR scheduling is similar to FIFO scheduling with the addition that threads sharing the same (highest) priority will participate in a time slicing algorithm i.e. even if a currently running thread does not become blocked it will be preempted by another process sharing the same priority after the time slice elapsed.
Definition at line 176 of file Scheduler.hxx.
|
inline |
Definition at line 180 of file Scheduler.hxx.