ThreadPool for a Service That Adapts to External Load
summary
A ThreadPool implementation tuned for services that download files over SMB, using a hill-climbing adaptive algorithm to maximize CPU and network utilization while dynamically ceding resources when higher-priority services need them. The approach integrates resource-aware scaling so the downloader runs efficiently but reduces its footprint under increased external load to avoid impacting other system services.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:39Need for custom ThreadPool
- 8:03Standard ThreadPool problems
- 18:47Real-world case study
- 24:05Custom ThreadPool goals
- 30:25Smart ThreadPool architecture
- 46:30Code optimizations
- 58:18Auto-unblocking pool
- 1:01:14Summary
related talks
01h 02mThread pools: variety of algorithms and features
01h 00mTactics for Building Background Services in .NET
11mImproving App Performance With Custom Thread Pools
51mEverything you wanted to know about writing async
01h 03mBuilding responsive and scalable applications
39mUnlocking Data-Intensive Applications with Virtual Threads
52mThread internals and related design patterns
36mHelidon on Loom
