contur2
Loading...
Searching...
No Matches
priority.h File Reference

Process priority levels and the Priority struct. More...

#include <cstdint>
#include <string_view>
Include dependency graph for priority.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  contur::Priority
 Composite priority descriptor for a process. More...

Namespaces

namespace  contur

Enumerations

enum class  contur::PriorityLevel : std::int8_t {
  contur::Realtime = 0 , contur::High = 1 , contur::AboveNormal = 2 , contur::Normal = 3 ,
  contur::BelowNormal = 4 , contur::Low = 5 , contur::Idle = 6
}
 Discrete priority levels, from highest (Realtime) to lowest (Idle). More...

Functions

constexpr std::string_view contur::priorityLevelName (PriorityLevel level) noexcept
 Returns a human-readable name for the given priority level.

Variables

constexpr std::int32_t contur::NICE_MIN = -20
 Minimum nice value (highest boost).
constexpr std::int32_t contur::NICE_MAX = 19
 Maximum nice value (lowest boost).
constexpr std::int32_t contur::NICE_DEFAULT = 0
 Default nice value (no adjustment).

Detailed Description

Process priority levels and the Priority struct.

Priority is a first-class concept in Contur 2. Each process has a base priority (set at creation), an effective priority (dynamically adjusted by the scheduler), and a nice value for fine-grained tuning.

Definition in file priority.h.