Walter.IO
WaitingThreads Property
Example 
Walter.IO Assembly > Walter.IO Namespace > Current Class : WaitingThreads Property
Gets the number of work items waiting in the thread pool queue to be executed.
Syntax
public static long WaitingThreads {get;}

Property Value

The number of waiting work items.
Remarks
This property provides insight into the workload of the thread pool, helping identify bottlenecks where tasks are waiting for available threads. This information can be particularly valuable for diagnosing performance issues and ensuring the application meets its SLA requirements.
Example
long waitingWorkItems = Current.WaitingThreads;
Console.WriteLine($"Waiting Thread Pool Work Items: {waitingWorkItems}");
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Current Class
Current Members