contur2
Loading...
Searching...
No Matches
contur::ProcessTiming Struct Reference

Aggregate holding process timing statistics. More...

#include <pcb.h>

Public Member Functions

constexpr ProcessTiming () noexcept=default
 Default constructor.

Public Attributes

Tick arrivalTime = 0
 Tick when the process was created.
Tick startTime = 0
 Tick when the process first entered Running.
Tick finishTime = 0
 Tick when the process entered Terminated.
Tick totalCpuTime = 0
 Cumulative ticks spent in Running state.
Tick totalWaitTime = 0
 Cumulative ticks spent in Ready state.
Tick totalBlockedTime = 0
 Cumulative ticks spent in Blocked state.
Tick lastStateChange = 0
 Tick of the most recent state transition.
Tick estimatedBurst = 0
 Predicted next CPU burst (for SPN/SRT).
Tick remainingBurst = 0
 Remaining ticks in current burst (for SRT).

Detailed Description

Aggregate holding process timing statistics.

Definition at line 21 of file pcb.h.

Constructor & Destructor Documentation

◆ ProcessTiming()

contur::ProcessTiming::ProcessTiming ( )
constexprdefaultnoexcept

Default constructor.

Member Data Documentation

◆ arrivalTime

Tick contur::ProcessTiming::arrivalTime = 0

Tick when the process was created.

Definition at line 23 of file pcb.h.

◆ estimatedBurst

Tick contur::ProcessTiming::estimatedBurst = 0

Predicted next CPU burst (for SPN/SRT).

Definition at line 30 of file pcb.h.

◆ finishTime

Tick contur::ProcessTiming::finishTime = 0

Tick when the process entered Terminated.

Definition at line 25 of file pcb.h.

◆ lastStateChange

Tick contur::ProcessTiming::lastStateChange = 0

Tick of the most recent state transition.

Definition at line 29 of file pcb.h.

◆ remainingBurst

Tick contur::ProcessTiming::remainingBurst = 0

Remaining ticks in current burst (for SRT).

Definition at line 31 of file pcb.h.

◆ startTime

Tick contur::ProcessTiming::startTime = 0

Tick when the process first entered Running.

Definition at line 24 of file pcb.h.

◆ totalBlockedTime

Tick contur::ProcessTiming::totalBlockedTime = 0

Cumulative ticks spent in Blocked state.

Definition at line 28 of file pcb.h.

◆ totalCpuTime

Tick contur::ProcessTiming::totalCpuTime = 0

Cumulative ticks spent in Running state.

Definition at line 26 of file pcb.h.

◆ totalWaitTime

Tick contur::ProcessTiming::totalWaitTime = 0

Cumulative ticks spent in Ready state.

Definition at line 27 of file pcb.h.


The documentation for this struct was generated from the following file:
  • include/contur/process/pcb.h