The Idle Thread: Asynchronous Programming in C# and .NET
Doorwar, Piyush
Sold by California Books, Miami, FL, U.S.A.
AbeBooks Seller since October 27, 2023
New - Soft cover
Condition: New
Ships within U.S.A.
Quantity: Over 20 available
Add to basketSold by California Books, Miami, FL, U.S.A.
AbeBooks Seller since October 27, 2023
Condition: New
Quantity: Over 20 available
Add to basketThat 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.
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.
"About this title" may belong to another edition of this title.
www.californiabooks.com
www.californiabooks.com
| Order quantity | 3 to 7 business days | 2 to 5 business days |
|---|---|---|
| First item | US$ 0.00 | US$ 12.00 |
Delivery times are set by sellers and vary by carrier and location. Orders passing through Customs may face delays and buyers are responsible for any associated duties or fees. Sellers may contact you regarding additional charges to cover any increased costs to ship your items.