CIM_Thread class

The CIM_Thread class represents the ability to execute units of a process or task, in parallel. A process can have many threads, each of which is weak to the process.

Important

The DMTF (Distributed Management Task Force) CIM (Common Information Model) classes are the parent classes upon which WMI classes are built. WMI currently supports only the CIM 2.x version schemas.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of its inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[Abstract, UUID("{8502C571-5FBB-11D2-AAC1-006008C78BC7}"), AMENDMENT]
class CIM_Thread : CIM_LogicalElement
{
  string   Caption;
  string   CreationClassName;
  string   CSCreationClassName;
  string   CSName;
  string   Description;
  uint16   ExecutionState;
  string   Handle;
  datetime InstallDate;
  uint64   KernelModeTime;
  string   Name;
  string   OSCreationClassName;
  string   OSName;
  uint32   Priority;
  string   ProcessCreationClassName;
  string   ProcessHandle;
  string   Status;
  uint64   UserModeTime;
};

Members

The CIM_Thread class has these types of members:

Properties

The CIM_Thread class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64), DisplayName ("Caption")

Short textual description of the object.

This property is inherited from CIM_ManagedSystemElement.

CreationClassName

Data type: string

Access type: Read-only

Qualifiers: Cim_Key, MaxLen (256)

Name of the class or subclass used in the creation of an instance. When used with other key properties of the class, this property allow all instances of the class and its subclasses to be uniquely identified.

CSCreationClassName

Data type: string

Access type: Read-only

Qualifiers: Propagated ("CIM_Process.CSCreationClassName"), Cim_Key, MaxLen (256)

Scoping computer system's creation class name.

CSName

Data type: string

Access type: Read-only

Qualifiers: Propagated ("CIM_Process.CSName"), Cim_Key, MaxLen (256)

Scoping computer system's name.

Description

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Description")

Textual description of the object.

This property is inherited from CIM_ManagedSystemElement.

ExecutionState

Data type: uint16

Access type: Read-only

Indicates the current operating condition of the thread.

Unknown (0)

Other (1)

Ready (2)

Running (3)

Blocked (4)

Suspended Blocked (5)

Suspended Ready (6)

Handle

Data type: string

Access type: Read-only

Qualifiers: Key, MaxLen (256)

Identifier for the thread.

InstallDate

Data type: datetime

Access type: Read-only

Qualifiers: MappingStrings ("MIF.DMTF|ComponentID|001.5"), DisplayName ("Install Date")

Date and time the object was installed. This property does not need a value to indicate that the object is installed.

This property is inherited from CIM_ManagedSystemElement.

KernelModeTime

Data type: uint64

Access type: Read-only

Qualifiers: Units ("milliseconds")

Time, in kernel mode, in 100 nanosecond units. If this information is not available, a value of 0 (zero) should be used.

For more information about using uint64 values in scripts, see Scripting in WMI.

Name

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Name")

Label by which the object is known. When subclassed, this property can be overridden to be a key property.

This property is inherited from CIM_ManagedSystemElement.

OSCreationClassName

Data type: string

Access type: Read-only

Qualifiers: Propagated ("CIM_Process.OSCreationClassName"), Cim_Key, MaxLen (256)

Scoping operating system's creation class name.

OSName

Data type: string

Access type: Read-only

Qualifiers: Propagated ("CIM_Process.OSName"), Cim_Key, MaxLen (256)

Scoping operating system's name.

Priority

Data type: uint32

Access type: Read-only

Urgency for execution of a thread. A thread can have a different priority than its owning process. If this information is not available for a thread, a value of 0 (zero) should be used.

ProcessCreationClassName

Data type: string

Access type: Read-only

Qualifiers: Propagated ("CIM_Process.CreationClassName"), Cim_Key, MaxLen (256)

Scoping process's creation class name.

ProcessHandle

Data type: string

Access type: Read-only

Qualifiers: Propagated ("CIM_Process.Handle"), Key, MaxLen (256)

Scoping process's handle.

Status

Data type: string

Access type: Read-only

Qualifiers: MaxLen (10), DisplayName ("Status")

Current status of the object. This property is inherited from CIM_ManagedSystemElement.

Values include the following:

OK ("OK")

Error ("Error")

Degraded ("Degraded")

Unknown ("Unknown")

Pred Fail ("Pred Fail")

Starting ("Starting")

Stopping ("Stopping")

Service ("Service")

Stressed ("Stressed")

NonRecover ("NonRecover")

No Contact ("No Contact")

Lost Comm ("Lost Comm")

UserModeTime

Data type: uint64

Access type: Read-only

Qualifiers: Units ("milliseconds")

Time, in user mode, in 100 nanosecond units. If this information is not available, a value of 0 (zero) should be used.

For more information about using uint64 values in scripts, see Scripting in WMI.

Remarks

The CIM_Thread class is derived from CIM_LogicalElement.

WMI does not implement this class. For WMI classes derived from CIM_Thread, see Win32 Classes.

This documentation is derived from the CIM class descriptions published by the DMTF. Microsoft may have made changes to correct minor errors, conform to Microsoft SDK documentation standards, or provide more information.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
CIMWin32.mof
DLL
CIMWin32.dll

See also

CIM_LogicalElement