OSThreadImpl

class OSThreadImpl(    val threadId: Int,     val name: String,     val state: State,     val threadCpuLoadCumulative: Double,     val threadCpuLoadBetweenTicks: Double,     val owningProcessId: Int,     val startMemoryAddress: Long,     val contextSwitches: Long,     val minorFaults: Long,     val majorFaults: Long,     val kernelTime: Long,     val userTime: Long,     val upTime: Long,     val startTime: Long,     val priority: Int,     val updateAttributes: Boolean) : OSThread

OSThreadImpl Provides the implementation of the OSThread interface, representing a thread of an operating system process, including details about its execution, resource usage, and associated metadata.

Author

N7ghtm4r3

Parameters

threadId

The unique identifier for the thread.

name

The name of the thread (e.g., "main", "worker").

state

The current state of the thread (e.g., running, sleeping).

threadCpuLoadCumulative

The cumulative CPU load of the thread as a percentage.

threadCpuLoadBetweenTicks

The CPU load of the thread between two ticks, as a percentage.

owningProcessId

The process ID of the process that owns the thread.

startMemoryAddress

The starting memory address of the thread.

contextSwitches

The number of context switches performed for the thread.

minorFaults

The number of minor page faults experienced by the thread.

majorFaults

The number of major page faults experienced by the thread.

kernelTime

The total amount of time the thread has spent in kernel mode, in milliseconds.

userTime

The total amount of time the thread has spent in user mode, in milliseconds.

upTime

The total uptime of the thread, in milliseconds.

startTime

The start time of the thread, in milliseconds since the Unix epoch.

priority

The priority level of the thread.

updateAttributes

A flag indicating whether the thread attributes should be updated.

See also

Constructors

Link copied to clipboard
constructor(    threadId: Int,     name: String,     state: State,     threadCpuLoadCumulative: Double,     threadCpuLoadBetweenTicks: Double,     owningProcessId: Int,     startMemoryAddress: Long,     contextSwitches: Long,     minorFaults: Long,     majorFaults: Long,     kernelTime: Long,     userTime: Long,     upTime: Long,     startTime: Long,     priority: Int,     updateAttributes: Boolean)

Properties

Link copied to clipboard
open override val contextSwitches: Long
Link copied to clipboard
open override val kernelTime: Long
Link copied to clipboard
open override val majorFaults: Long
Link copied to clipboard
open override val minorFaults: Long
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val owningProcessId: Int
Link copied to clipboard
open override val priority: Int
Link copied to clipboard
open override val startMemoryAddress: Long
Link copied to clipboard
open override val startTime: Long
Link copied to clipboard
open override val state: State
Link copied to clipboard
Link copied to clipboard
open override val threadCpuLoadCumulative: Double
Link copied to clipboard
open override val threadId: Int
Link copied to clipboard
open override val updateAttributes: Boolean
Link copied to clipboard
open override val upTime: Long
Link copied to clipboard
open override val userTime: Long