Win32_Thread, ROOT\CIMV2

Class | Methods | Properties (22) | Qualifiers (5) | Instances (40) | Namespaces (2)
Samples: VB Script | C# | VB.Net | Search on:Microsoft

Description

The Win32_Thread class represents a thread of execution.While a process must have one thread of execution, the process can create other threads to execute tasks in parallel. Threads share the process environment, thus multiple threads under the same process use less memory than the same number of processes.

Win32_Thread properties

Win32_Thread has 22 properties (5 Local, 17 Derived)

NameOriginCIMType
CaptionCIM_ManagedSystemElement8 [string]
CreationClassNameCIM_Thread8 [string]
CSCreationClassNameCIM_Thread8 [string]
CSNameCIM_Thread8 [string]
DescriptionCIM_ManagedSystemElement8 [string]
ElapsedTimeWin32_Thread21 [uint64]
ExecutionStateCIM_Thread18 [uint16]
key
Handle
CIM_Thread8 [string]
InstallDateCIM_ManagedSystemElement101 [datetime]
KernelModeTimeCIM_Thread21 [uint64]
NameCIM_ManagedSystemElement8 [string]
OSCreationClassNameCIM_Thread8 [string]
OSNameCIM_Thread8 [string]
PriorityCIM_Thread19 [uint32]
PriorityBaseWin32_Thread19 [uint32]
ProcessCreationClassNameCIM_Thread8 [string]
key
ProcessHandle
CIM_Thread8 [string]
StartAddressWin32_Thread19 [uint32]
StatusCIM_ManagedSystemElement8 [string]
ThreadStateWin32_Thread19 [uint32]
ThreadWaitReasonWin32_Thread19 [uint32]
UserModeTimeCIM_Thread21 [uint64]

Detailed description of Win32_Thread properties

Local properties (5) of Win32_Thread class

ElapsedTime property
CIMTYPE'uint64'
Description'The ElapsedTime property indicates the total execution time given to this thread since its creation.'
MappingStrings['Win32API|Performance Data Structures|PERF_OBJECT_TYPE|PerfTime']
readTrue
Units'milliseconds'
ElapsedTime property is in 10 classes of ROOT\cimv2 and in 17 namespaces
PriorityBase property
CIMTYPE'uint32'
Description'The PriorityBase property indicates the current base priority of a thread. The operating system may raise the thread's dynamic priority above the base priority if the thread is handling user input, or lower it toward the base priority if the thread becomes compute-bound. The PriorityBase propertycan have a value between 0 and 31'
MappingStrings['Win32API|Performance Data Structures|PERF_OBJECT_TYPE|PerfPriorityBase']
readTrue
PriorityBase property is in 7 classes of ROOT\cimv2 and in 2 namespaces
StartAddress property
CIMTYPE'uint32'
Description'The StartAddress property indicates the starting address of the thread. Because any application with appropriate access to the thread can change the thread's context, this value may only be an approximation of the thread's starting address.'
MappingStrings['WIn32API|Thread Object|LPTHREAD_START_ROUTINE|lpStartAddress']
readTrue
StartAddress property is in 3 classes of ROOT\cimv2 and in 4 namespaces
ThreadState property
CIMTYPE'uint32'
Description'The ThreadState property indicates the current execution state for the thread. A thread can have one of eight values: Initialized (recognized by the microkernel), Ready (prepared to run on next available processor), Running (executing), Standby (about to run, only one thread may be in this state at a time), Terminated (finished executing), Waiting (not ready for the processor, when ready, it will be rescheduled), Transition (thread is waiting for resources other than the processor), and Unknown (the thread state is unknown).'
MappingStrings['Win32API|Thread State']
readTrue
Values['Initialized', 'Ready', 'Running', 'Standby', 'Terminated', 'Waiting', 'Transition', 'Unknown']
ThreadState property is in 3 classes of ROOT\cimv2 and in 2 namespaces
ThreadWaitReason property
CIMTYPE'uint32'
Description'The ThreadWaitReason property indicates why the thread is waiting. The value is only valid if the ThreadState member is set to Waiting. Values of 0 or 7 denote that the thread is waiting for the Executive, 1 or 8 for a Free Page, 2 or 9 for a Page In, 3 or 10 for a Pool Allocation, 4 or 11 for an Execution Delay, 5 or 12 for a Suspended condition, 6 or 13 for a User Request, 14 for an Event Pair High, 15 for an Event Pair Low, 16 for an Local Procedure Call (LPC) Receive, 17 for an LPC Reply, 18 for Virtual Memory, 19 for a Page Out. 20 and higher are not assigned. Event Pairs allow communication with protected subsystems (see Context Switches).'
MappingStrings['Win32API|Thread Wait Reason']
readTrue
Values['Executive', 'FreePage', 'PageIn', 'PoolAllocation', 'ExecutionDelay', 'FreePage', 'PageIn', 'Executive', 'FreePage', 'PageIn', 'PoolAllocation', 'ExecutionDelay', 'FreePage', 'PageIn', 'EventPairHigh', 'EventPairLow', 'LPCReceive', 'LPCReply', 'VirtualMemory', 'PageOut', 'Unknown']
ThreadWaitReason property is in 3 classes of ROOT\cimv2 and in 2 namespaces

Derived properties (17) of Win32_Thread class

Caption property
CIMTYPE'string'
Description'The Caption property is a short textual description (one-line string) of the object.'
MaxLen64
readTrue
Caption property is in 1050 classes of ROOT\cimv2 and in 37 namespaces
CreationClassName property
Cim_KeyTrue
CIMTYPE'string'
Description'CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allow all instances of this class and its subclasses to be uniquely identified.'
MaxLen256
readTrue
CreationClassName property is in 178 classes of ROOT\cimv2 and in 20 namespaces
CSCreationClassName property
Cim_KeyTrue
CIMTYPE'string'
Description'The scoping computer system's creation class name.'
MaxLen256
Propagated'CIM_Process.CSCreationClassName'
readTrue
CSCreationClassName property is in 27 classes of ROOT\cimv2 and in 2 namespaces
CSName property
Cim_KeyTrue
CIMTYPE'string'
Description'The scoping computer system's name.'
MaxLen256
Propagated'CIM_Process.CSName'
readTrue
CSName property is in 28 classes of ROOT\cimv2 and in 2 namespaces
Description property
CIMTYPE'string'
Description'The Description property provides a textual description of the object. '
readTrue
Description property is in 1061 classes of ROOT\cimv2 and in 142 namespaces
ExecutionState property
CIMTYPE'uint16'
Description'Indicates the current operating condition of the thread. Values include ready (2), running (3), and blocked (4), among others.'
readTrue
Values['Unknown', 'Other', 'Ready', 'Running', 'Blocked', 'Suspended Blocked', 'Suspended Ready']
ExecutionState property is in 4 classes of ROOT\cimv2 and in 2 namespaces
Handle property
CIMTYPE'string'
Description'The Handle property represents a handle to a thread. The handle has full access rights by default. With the correct security access, the handle can be used in any function that accepts a thread handle. Depending on the inheritance flag specified when it is created, this handle can be inherited by child processes.'
keyTrue
MappingStrings['Win32API|Tool Help Structures|THREADENTRY32|th32ThreadID']
MaxLen256
Override'Handle'
readTrue
Handle property is in 4 classes of ROOT\cimv2 and in 4 namespaces
InstallDate property
CIMTYPE'datetime'
Description'The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.'
MappingStrings['MIF.DMTF|ComponentID|001.5']
readTrue
InstallDate property is in 227 classes of ROOT\cimv2 and in 23 namespaces
KernelModeTime property
CIMTYPE'uint64'
Description'The KernelModeTime property indicates the raw counter data from the performance counter type
PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT
The counter data is in 100 nanosecond units.'
MappingStrings['Win32API|Performance Data Structures|PERF_OBJECT_TYPE|PrivilegedTime']
Override'KernelModeTime'
readTrue
Units'100 nanoseconds'
KernelModeTime property is in 4 classes of ROOT\cimv2 and in 2 namespaces
Name property
CIMTYPE'string'
Description'The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.'
readTrue
Name property is in 1046 classes of ROOT\cimv2 and in 142 namespaces
OSCreationClassName property
Cim_KeyTrue
CIMTYPE'string'
Description'The scoping operating system's creation class name.'
MaxLen256
Propagated'CIM_Process.OSCreationClassName'
readTrue
OSCreationClassName property is in 4 classes of ROOT\cimv2 and in 2 namespaces
OSName property
Cim_KeyTrue
CIMTYPE'string'
Description'The scoping operating system's name.'
MaxLen256
Propagated'CIM_Process.OSName'
readTrue
OSName property is in 4 classes of ROOT\cimv2 and in 3 namespaces
Priority property
CIMTYPE'uint32'
Description'The Priority property indicates the dynamic priority of the thread. Each thread has a dynamic priority that the scheduler uses to determine which thread to execute. Initially, a thread's dynamic priority is the same as its base priority. The system can raise and lower the dynamic priority, to ensure that it is responsive (guaranteeing that no threads are starved for processor time). The system does not boost the priority of threads with a base priority level between 16 and 31. Only threads with a base priority between 0 and 15 receive dynamic priority boosts. Higher numbers indicate higher priorities.'
MappingStrings['Win32API|Tool Help Structures|THREADENTRY32|tpDeltaPri']
Override'Priority'
readTrue
Priority property is in 9 classes of ROOT\cimv2 and in 31 namespaces
ProcessCreationClassName property
Cim_KeyTrue
CIMTYPE'string'
Description'The scoping process' CreationClassName.'
MaxLen256
Propagated'CIM_Process.CreationClassName'
readTrue
ProcessCreationClassName property is in 2 classes of ROOT\cimv2 and in 2 namespaces
ProcessHandle property
CIMTYPE'string'
Description'The ProcessHandle property indicates the process that created the thread. The contents of this property can be used by Win32 API elements.'
keyTrue
MappingStrings['Win32API|Tool Help Structures|THREADENTRY32|th32OwnerProcessID']
MaxLen256
Override'ProcessHandle'
Propagated'CIM_Process.Handle'
readTrue
ProcessHandle property is in 2 classes of ROOT\cimv2 and in 2 namespaces
Status property
CIMTYPE'string'
Description'The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.'
MaxLen10
readTrue
ValueMap['OK', 'Error', 'Degraded', 'Unknown', 'Pred Fail', 'Starting', 'Stopping', 'Service', 'Stressed', 'NonRecover', 'No Contact', 'Lost Comm']
Values['OK', 'Error', 'Degraded', 'Unknown', 'Pred Fail', 'Starting', 'Stopping', 'Service', 'Stressed', 'NonRecover', 'No Contact', 'Lost Comm']
Status property is in 230 classes of ROOT\cimv2 and in 42 namespaces
UserModeTime property
CIMTYPE'uint64'
Description'The UserModeTime property indicates the raw counter data from the performance counter type
PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT
The counter data is in 100 nanosecond units.'
MappingStrings['Win32API|Performance Data Structures|PERF_OBJECT_TYPE|UserTime']
Override'UserModeTime'
readTrue
Units'100 nanoseconds'
UserModeTime property is in 4 classes of ROOT\cimv2 and in 2 namespaces

Win32_Thread Qualifiers

NameValueToInstanceToSubclassOverridableAmendedLocal
Description'The Win32_Thread class represents a thread of execution.While a process must have one thread of execution, the process can create other threads to execute tasks in parallel. Threads share the process environment, thus multiple threads under the same process use less memory than the same number of processes.'
dynamicTrue
Locale1033
provider'CIMWin32'
UUID'{8502C4DD-5FBB-11D2-AAC1-006008C78BC7}'

Win32_Thread System properties

NameValueOriginCIMTypeLocalArray
__PATH'\\.\ROOT\cimv2:Win32_Thread'___SYSTEM8
__NAMESPACE'ROOT\cimv2'___SYSTEM8
__SERVER'.'___SYSTEM8
__DERIVATION['CIM_Thread', 'CIM_LogicalElement', 'CIM_ManagedSystemElement']___SYSTEM8
__PROPERTY_COUNT22___SYSTEM3
__RELPATH'Win32_Thread'___SYSTEM8
__DYNASTY'CIM_ManagedSystemElement'___SYSTEM8
__SUPERCLASS'CIM_Thread'___SYSTEM8
__CLASS'Win32_Thread'___SYSTEM8
__GENUS1___SYSTEM3

Similar Classes to Win32_Thread

Number of classes:14
comments powered by Disqus
WUtils.com