System.Diagnostics.Process.Threads Property

Gets the set of threads that are running in the associated process.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Diagnostics.MonitoringDescription("The number of threads of this process.")]
[System.MonoTODO]
public ProcessThreadCollection Threads { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A thread executes code in a process. Each process is started with a single thread, its primary thread. Any thread can create additional threads. Threads within a process share the address space of the process.

Use System.Diagnostics.ProcessThread to get all the threads associated with the current process. The primary thread is not necessarily at index zero in the array.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0