The Idle Thread: Asynchronous Programming in C# and .NET
Language: English
Published by Independently published, 2026
- Softcover
- New

Seller: California Books, Miami, FL, U.S.A.California Books
AbeBooks seller since October 27, 2023
Condition: New
US$ 16.00
Quantity: Over 20 available
Add to basketItem description from seller
Print on Demand.
Seller Inventory # I-9798171394431
- Title
- The Idle Thread: Asynchronous Programming in C# and .NET
- Author
- Doorwar, Piyush
- Publisher
- Independently published
- Publication year
- 2026
- Condition
- New
- Binding
- Soft cover
- Language
- English
- ISBN 13
- 9798171394431
That is Skylark in chapter one: a flight-price aggregator that asks three airlines for a fare and holds a thread hostage through almost all of it.
Ten chapters later the same program queries forty carriers inside a two-second budget, streams each price to the browser as it lands, scores fifty thousand itineraries across eight cores, and cancels every outbound call the moment a user closes the tab. At two hundred requests a second its median response time is seventy milliseconds worse than at idle.
One program, rebuilt in the open. Every change comes with a measurement you can reproduce.
Plenty of C# developers type async and await daily and would struggle to say what happens to the calling thread when execution reaches an await, or why a service that looks perfectly healthy quietly stops answering under load. This book replaces pattern matching with a model.
What you'll work through
- What a thread costs, and the point where adding more of them stops helping
- What a Task really is, and how a thousand of them run on thirteen threads
- What the compiler writes when you type await, and how to read the stack traces it leaves behind
- Task.WhenAll, WhenAny and .NET 9's WhenEach, plus the one small omission that turns a fan-out back into a queue
- Cancellation, linked tokens, timeouts, and returning partial results when the clock runs out
- Why .Result deadlocks a WPF app and starves an ASP.NET Core one, and how to recognise starvation from a counters dashboard
- Where parallelism is the right tool and async has nothing to offer
- Async in a real service: EF Core, IHttpClientFactory, BackgroundService, channels, IAsyncEnumerable streaming
- ValueTask and its four rules, ExecutionContext, and what .NET 11's runtime async changes underneath you
Written for developers who already know C# — generics, LINQ, the shape of a .NET project. No prior multithreading experience assumed; chapter two starts from what a thread is.
Code targets .NET 10 LTS, with a closing chapter on .NET 11. A quick-reference appendix collects the combinators, the cancellation API, the diagnostic commands, and a table of anti-patterns with what to write instead.
"Synopsis" may belong to another edition of this title.
California Books
Miami, FL, U.S.A.
AbeBooks seller since October 27, 2023
Shipping rates within U.S.A.
| Item | 3 to 7 business days | 2 to 5 business days |
|---|---|---|
| First item | US$ 3.00 | US$ 17.00 |
Payment methods
Store description
We have 20 years experience selling books worldwide! Friendly customer support. Your satisfaction guaranteed!
Specialty
All authorized categoriesSeller's business information
Miramar International Services LLC
FL, U.S.A.
Terms of sale
www.californiabooks.com
Shipping terms
www.californiabooks.com