Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
contur::TuiProcessSnapshot Struct Reference

Immutable process row used by TUI views. More...

#include <tui_models.h>

Public Attributes

ProcessId id = INVALID_PID
 Process identifier.
std::string name
 Human-readable process name.
ProcessState state = ProcessState::New
 Current process lifecycle state.
PriorityLevel basePriority = PriorityLevel::Normal
 Static/base process priority.
PriorityLevel effectivePriority = PriorityLevel::Normal
 Dynamic/effective process priority.
std::int32_t nice = NICE_DEFAULT
 Nice value used for fine-grained priority adjustment.
Tick cpuTime = 0
 Total CPU time consumed by process.
std::optional< std::size_t > laneIndex
 Optional scheduler lane ownership metadata.

Detailed Description

Immutable process row used by TUI views.

Definition at line 20 of file tui_models.h.

Member Data Documentation

◆ basePriority

PriorityLevel contur::TuiProcessSnapshot::basePriority = PriorityLevel::Normal

Static/base process priority.

Definition at line 32 of file tui_models.h.

◆ cpuTime

Tick contur::TuiProcessSnapshot::cpuTime = 0

Total CPU time consumed by process.

Definition at line 41 of file tui_models.h.

◆ effectivePriority

PriorityLevel contur::TuiProcessSnapshot::effectivePriority = PriorityLevel::Normal

Dynamic/effective process priority.

Definition at line 35 of file tui_models.h.

◆ id

ProcessId contur::TuiProcessSnapshot::id = INVALID_PID

Process identifier.

Definition at line 23 of file tui_models.h.

◆ laneIndex

std::optional<std::size_t> contur::TuiProcessSnapshot::laneIndex

Optional scheduler lane ownership metadata.

Definition at line 44 of file tui_models.h.

◆ name

std::string contur::TuiProcessSnapshot::name

Human-readable process name.

Definition at line 26 of file tui_models.h.

◆ nice

std::int32_t contur::TuiProcessSnapshot::nice = NICE_DEFAULT

Nice value used for fine-grained priority adjustment.

Definition at line 38 of file tui_models.h.

◆ state

ProcessState contur::TuiProcessSnapshot::state = ProcessState::New

Current process lifecycle state.

Definition at line 29 of file tui_models.h.


The documentation for this struct was generated from the following file: