Killer or Thief: Where Threads in .NET Really Come From and Why Stealing Is Bad
summary
A .NET-focused incident analysis showing how unexpected threads can appear and degrade throughput: the talk traces a service that jumped from ~500 to 15,000 threads and ran twice as slow, investigates code, logs, and memory dumps, and ultimately identifies a flaw in the .NET runtime (a thread-pool and performance 'killer'). It covers practical debugging steps and root-cause discovery rather than speculative fixes.
AI-written summary · about
chapters (12)
- 0:00Thread issues introduction
- 1:10Hidden .NET thread management
- 2:5516k threads incident
- 7:08Diagnosing with PerfView
- 9:16ThreadPool.QueueUserWorkItem
- 13:28Thread stealing explained
- 15:17Parallel.For performance killer
- 17:22SemaphoreSlim misuse
- 19:51ContinueWith performance killer
- 21:37Solutions and fixes
- 23:26ThreadPool settings
- 24:52Q&A
