|
|
|
|
|
by MarkSweep
398 days ago
|
|
The thread pool starvation problem in .NET is annoying when you encounter it. Personally I have not bumped into since the .NET framework days. The thread pool implementation has been tweaked over the years to reduce the impact of this problem. The latest tweak that will be in .NET 10: https://github.com/dotnet/runtime/pull/112796 I’m not sure a thread pool implementation can immune to misuse (many tasks that synchronously block on the completion of other tasks in the pool). All you can do is add more threads or try to be smarter about the order tasks are run. I’m not a thread pool expert, so I might have no idea what I’m talking about. |
|