OSThread

interface OSThread

OSThread Represents a thread of an operating system process, providing details about its execution, resource usage, and associated metadata.

Author

N7ghtm4r3

See also

Inheritors

OSThreadImpl

Properties

Link copied to clipboard
abstract val contextSwitches: Long

contextSwitches The number of context switches performed for the thread.

Link copied to clipboard
abstract val kernelTime: Long

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

Link copied to clipboard
abstract val majorFaults: Long

majorFaults The number of major page faults experienced by the thread.

Link copied to clipboard
abstract val minorFaults: Long

minorFaults The number of minor page faults experienced by the thread.

Link copied to clipboard
abstract val name: String

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

Link copied to clipboard
abstract val owningProcessId: Int

owningProcessId The process ID of the process that owns the thread.

Link copied to clipboard
abstract val priority: Int

priority The priority level of the thread.

Link copied to clipboard
abstract val startMemoryAddress: Long

startMemoryAddress The starting memory address of the thread.

Link copied to clipboard
abstract val startTime: Long

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

Link copied to clipboard
abstract val state: State

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

Link copied to clipboard

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

Link copied to clipboard

threadCpuLoadCumulative The cumulative CPU load of the thread as a percentage.

Link copied to clipboard
abstract val threadId: Int

threadId The unique identifier for the thread.

Link copied to clipboard

updateAttributes A flag indicating whether the thread attributes should be updated.

Link copied to clipboard
abstract val upTime: Long

upTime The total uptime of the thread, in milliseconds.

Link copied to clipboard
abstract val userTime: Long

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