ThreadPool.ThreadCount Property

Definition

Gets the number of thread pool threads that currently exist.

C#
public static int ThreadCount { get; }

Property Value

The number of thread pool threads that currently exist.

Remarks

If a thread pool implementation may have different types of threads, the count includes all types.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9