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

Lightweight process row for diagnostics and TUI rendering. More...

#include <i_kernel.h>

Public Attributes

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

Detailed Description

Lightweight process row for diagnostics and TUI rendering.

Definition at line 60 of file i_kernel.h.

Member Data Documentation

◆ basePriority

PriorityLevel contur::KernelProcessSnapshot::basePriority = PriorityLevel::Normal

Base/static priority.

Definition at line 72 of file i_kernel.h.

◆ cpuTime

Tick contur::KernelProcessSnapshot::cpuTime = 0

Total CPU time consumed by process.

Definition at line 81 of file i_kernel.h.

◆ effectivePriority

PriorityLevel contur::KernelProcessSnapshot::effectivePriority = PriorityLevel::Normal

Effective/dynamic priority.

Definition at line 75 of file i_kernel.h.

◆ id

ProcessId contur::KernelProcessSnapshot::id = INVALID_PID

Process identifier.

Definition at line 63 of file i_kernel.h.

◆ laneIndex

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

Optional scheduler lane ownership metadata.

Definition at line 84 of file i_kernel.h.

◆ name

std::string contur::KernelProcessSnapshot::name

Process name.

Definition at line 66 of file i_kernel.h.

◆ nice

std::int32_t contur::KernelProcessSnapshot::nice = NICE_DEFAULT

Nice value used for fine-grained priority adjustments.

Definition at line 78 of file i_kernel.h.

◆ state

ProcessState contur::KernelProcessSnapshot::state = ProcessState::New

Current process lifecycle state.

Definition at line 69 of file i_kernel.h.


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