Class: WMI::Win32_Thread

Inherits:
Base
  • Object
show all
Defined in:
lib/Win32_Thread.rb

Overview

Win32_Thread クラスは、実行のスレッドを表します。プロセスに実行のスレッドが 1 つある必要があるとき、プロセスは平行してタスクを実行するためにほかのスレッドを作成できます。スレッドはプロセス環境を共有するので、同じプロセスの複数スレッドが使用するメモリは同じプロセス数より少なくなります。

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from Base

#AddRef, #AssociatorsAsync_, #Associators_, #Clone_, #CompareTo_, #DeleteAsync_, #Delete_, #Derivation_, #ExecMethodAsync_, #ExecMethod_, #GetIDsOfNames, #GetObjectText_, #GetText_, #GetTypeInfo, #GetTypeInfoCount, #InstancesAsync_, #Instances_, #Invoke, #Methods_, #Path_, #Properties_, #PutAsync_, #Put_, #Qualifiers_, #QueryInterface, #ReferencesAsync_, #References_, #Refresh_, #Release, #Security_, #SetFromText_, #SpawnDerivedClass_, #SpawnInstance_, #SubclassesAsync_, #Subclasses_, #SystemProperties_

Instance Attribute Details

- (string) Caption (readonly)

Caption プロパティは、オブジェクトについての簡単な説明 (1 行分の文字列) です。

Returns:

  • (string)

    Caption



7
8
9
# File 'lib/Win32_Thread.rb', line 7

def Caption
  @Caption
end

- (string) CreationClassName (readonly)

CreationClassName は、インスタンスの作成で使用されるクラス名、またはサブクラス名を示します。

 

Returns:

  • (string)

    CreationClassName



13
14
15
# File 'lib/Win32_Thread.rb', line 13

def CreationClassName
  @CreationClassName
end

- (string) CSCreationClassName (readonly)

スコーピング コンピュータ システムの作成クラス名です。

Returns:

  • (string)

    CSCreationClassName



18
19
20
# File 'lib/Win32_Thread.rb', line 18

def CSCreationClassName
  @CSCreationClassName
end

- (string) CSName (readonly)

スコーピング コンピュータ システムの名前です。

Returns:

  • (string)

    CSName



23
24
25
# File 'lib/Win32_Thread.rb', line 23

def CSName
  @CSName
end

- (string) Description (readonly)

Description プロパティでオブジェクトの説明が提供されます。

Returns:

  • (string)

    Description



29
30
31
# File 'lib/Win32_Thread.rb', line 29

def Description
  @Description
end

- (uint64) ElapsedTime (readonly)

ElapsedTime プロパティにより、このスレッドが作成されてからこのスレッドに与えられた実行時間の合計を示します。

Returns:

  • (uint64)

    ElapsedTime



34
35
36
# File 'lib/Win32_Thread.rb', line 34

def ElapsedTime
  @ElapsedTime
end

- (uint16) ExecutionState (readonly)

スレッドの現在の操作状態を示します。

 

Returns:

  • (uint16)

    ExecutionState



40
41
42
# File 'lib/Win32_Thread.rb', line 40

def ExecutionState
  @ExecutionState
end

- (string) Handle (readonly)

Handle プロパティは、スレッドへのハンドルを表します。

 

Returns:

  • (string)

    Handle



48
49
50
# File 'lib/Win32_Thread.rb', line 48

def Handle
  @Handle
end

- (datetime) InstallDate (readonly)

InstallDate プロパティは、オブジェクトがインストールされた日時を示す値です。

 

Returns:

  • (datetime)

    InstallDate



54
55
56
# File 'lib/Win32_Thread.rb', line 54

def InstallDate
  @InstallDate
end

- (uint64) KernelModeTime (readonly)

KernelModeTime プロパティにより、パフォーマンス カウンタの種類から未処理カウンタ データが示されます。

 PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT
  

Returns:

  • (uint64)

    KernelModeTime



62
63
64
# File 'lib/Win32_Thread.rb', line 62

def KernelModeTime
  @KernelModeTime
end

- (string) Name (readonly)

Name プロパティで、オブジェクトを認識するラベルを定義します。

 

Returns:

  • (string)

    Name



68
69
70
# File 'lib/Win32_Thread.rb', line 68

def Name
  @Name
end

- (string) OSCreationClassName (readonly)

スコーピング オペレーティング システムの作成クラス名です。

Returns:

  • (string)

    OSCreationClassName



73
74
75
# File 'lib/Win32_Thread.rb', line 73

def OSCreationClassName
  @OSCreationClassName
end

- (string) OSName (readonly)

スコーピング オペレーティング システムの名前です。

Returns:

  • (string)

    OSName



78
79
80
# File 'lib/Win32_Thread.rb', line 78

def OSName
  @OSName
end

- (uint32) Priority (readonly)

Priority プロパティは、スレッドの動的優先順位を示します。

 

Returns:

  • (uint32)

    Priority



89
90
91
# File 'lib/Win32_Thread.rb', line 89

def Priority
  @Priority
end

- (uint32) PriorityBase (readonly)

PriorityBase プロパティは、スレッドの現在の基本優先順位を示します。

 

Returns:

  • (uint32)

    PriorityBase



97
98
99
# File 'lib/Win32_Thread.rb', line 97

def PriorityBase
  @PriorityBase
end

- (string) ProcessCreationClassName (readonly)

スコーピング プロセスの CreationClassName です。

Returns:

  • (string)

    ProcessCreationClassName



102
103
104
# File 'lib/Win32_Thread.rb', line 102

def ProcessCreationClassName
  @ProcessCreationClassName
end

- (string) ProcessHandle (readonly)

ProcessHandle プロパティは、スレッドを作成したプロセスを示します。

 

Returns:

  • (string)

    ProcessHandle



108
109
110
# File 'lib/Win32_Thread.rb', line 108

def ProcessHandle
  @ProcessHandle
end

- (uint32) StartAddress (readonly)

StartAddressプロパティは、スレッドの開始アドレスを示します。

  

Returns:

  • (uint32)

    StartAddress



114
115
116
# File 'lib/Win32_Thread.rb', line 114

def StartAddress
  @StartAddress
end

- (string) Status (readonly)

Status プロパティはオブジェクトの現在の状態を示す文字列です。

 

Returns:

  • (string)

    Status



127
128
129
# File 'lib/Win32_Thread.rb', line 127

def Status
  @Status
end

- (uint32) ThreadState (readonly)

ThreadState プロパティは、スレッドの現在の実行状態を示します。

 

Returns:

  • (uint32)

    ThreadState



133
134
135
# File 'lib/Win32_Thread.rb', line 133

def ThreadState
  @ThreadState
end

- (uint32) ThreadWaitReason (readonly)

ThreadWaitReason プロパティは、スレッドの待機理由を示します。

 

Returns:

  • (uint32)

    ThreadWaitReason



143
144
145
# File 'lib/Win32_Thread.rb', line 143

def ThreadWaitReason
  @ThreadWaitReason
end

- (uint64) UserModeTime (readonly)

UserModeTime プロパティにより、パフォーマンス カウンタの種類から未処理カウンタ データが示されます。

 PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_RATE | PERF_TIMER_100NS | PERF_DELTA_COUNTER | PERF_DISPLAY_PERCENT
  

Returns:

  • (uint64)

    UserModeTime



151
152
153
# File 'lib/Win32_Thread.rb', line 151

def UserModeTime
  @UserModeTime
end