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

Immutable process view consumed by scheduling policies. More...

#include <i_scheduling_policy.h>

Public Attributes

ProcessId pid = INVALID_PID
Tick arrivalTime = 0
Tick lastStateChange = 0
Tick estimatedBurst = 0
Tick remainingBurst = 0
Tick totalWaitTime = 0
PriorityLevel effectivePriority = PriorityLevel::Normal
std::int32_t nice = NICE_DEFAULT

Detailed Description

Immutable process view consumed by scheduling policies.

Policies receive this value-type snapshot to avoid direct access to mutable/shared PCB state.

Definition at line 22 of file i_scheduling_policy.h.

Member Data Documentation

◆ arrivalTime

Tick contur::SchedulingProcessSnapshot::arrivalTime = 0

Definition at line 25 of file i_scheduling_policy.h.

◆ effectivePriority

PriorityLevel contur::SchedulingProcessSnapshot::effectivePriority = PriorityLevel::Normal

Definition at line 30 of file i_scheduling_policy.h.

◆ estimatedBurst

Tick contur::SchedulingProcessSnapshot::estimatedBurst = 0

Definition at line 27 of file i_scheduling_policy.h.

◆ lastStateChange

Tick contur::SchedulingProcessSnapshot::lastStateChange = 0

Definition at line 26 of file i_scheduling_policy.h.

◆ nice

std::int32_t contur::SchedulingProcessSnapshot::nice = NICE_DEFAULT

Definition at line 31 of file i_scheduling_policy.h.

◆ pid

ProcessId contur::SchedulingProcessSnapshot::pid = INVALID_PID

Definition at line 24 of file i_scheduling_policy.h.

◆ remainingBurst

Tick contur::SchedulingProcessSnapshot::remainingBurst = 0

Definition at line 28 of file i_scheduling_policy.h.

◆ totalWaitTime

Tick contur::SchedulingProcessSnapshot::totalWaitTime = 0

Definition at line 29 of file i_scheduling_policy.h.


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