Helios.DedicatedThreadPool
0.2.0
dotnet add package Helios.DedicatedThreadPool --version 0.2.0
NuGet\Install-Package Helios.DedicatedThreadPool -Version 0.2.0
<PackageReference Include="Helios.DedicatedThreadPool" Version="0.2.0" />
paket add Helios.DedicatedThreadPool --version 0.2.0
#r "nuget: Helios.DedicatedThreadPool, 0.2.0"
// Install Helios.DedicatedThreadPool as a Cake Addin #addin nuget:?package=Helios.DedicatedThreadPool&version=0.2.0 // Install Helios.DedicatedThreadPool as a Cake Tool #tool nuget:?package=Helios.DedicatedThreadPool&version=0.2.0
An instanced, dedicated ThreadPool for eliminating "noisy neighbor" problems on the CLR ThreadPool
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added deadlock detection to the `DedicatedThreadPool` and other bug / performance fixes.
Deadlock detection is somewhat simplistic and it can't tell the difference between extremely long running tasks and a deadlock, so by default it's disabled.
However, if you want to enable it you can turn it on via the the `DedicatedThreadPoolSettings` class:
```csharp
/*
Any task running longer than 5 seconds will be assumed deadlocked
and aborted.
/
using (var threadPool = new Helios.Concurrency.DedicatedThreadPool(
new DedicatedThreadPoolSettings(numThreads, TimeSpan.FromSeconds(5))))
{
threadPool.QueueUserWorkItem(() => { ... }));
}
```