Jump to ratings and reviews
Rate this book

C# Concurrency: Asynchronous and multithreaded programming

Rate this book
Supercharge your applications with the ultimate guide to asynchronous and multithreaded programming in C#!

C# Concurrency teaches you how to write effective multithreaded and asynchronous software in C#. Practical techniques, real-world examples, and useful code samples cut through the confusion around async/await and help you write rapid, reliable, and bug-free code.

In C# Asynchronous and Multithreaded Programming you’ll learn how

• Take full advantage of async/await
• Write bug-free multithreaded code every time
• Create multithreaded code that delivers real performance improvements
• Grok C# and .NET multithreading and asynchronous primitives
• Know when to use concurrency techniques—and when not to use them!

In C# Concurrency Nir Dobovizki, a seasoned C# veteran with over 30 years of high-performance programming experience, shares his deep knowledge and expert techniques. Say goodbye to frustrating pitfalls and impossible-to-find bugs that slow down your applications. Nir's careful approach will teach you how to navigate these challenges with ease, allowing you to achieve lightning-fast performance like never before!

About the technology

Asynchronous and multithreaded programs can perform multiple tasks simultaneously without losing speed or reliability. But getting concurrency right can challenge even experienced developers. This practical book teaches you to deliver concurrent C# apps that are lighting fast and free of the deadlocks and other synchronization issues that undermine performance and take forever to find.

About the book

C# Concurrency equips programmers with a comprehensive understanding of multithreading and asynchronous programming, focusing on the practical use of the C# async-await feature to simplify asynchronous tasks. It teaches how to avoid common pitfalls, addresses classic multithreading issues like deadlocks and race conditions, and advanced topics such as controlling thread of execution and using thread-safe collections.

What's inside

• .NET multithreading and asynchronous primitives
• When to use concurrency techniques—and when not to!
• Confidently use async/await

About the reader

For experienced C# programmers. No knowledge of asynchro- nous programming required.

About the author

Nir Dobovizki is a senior software architect and consultant who has worked on concurrent and asynchronous systems since the late 90s.

Table of Contents

1 Asynchronous programming and multithreading
2 The compiler rewrites your code
3 The async and await keywords
4 Multithreading basics
5 async/await and multithreading
6 When to use async/await
7 Classic multithreading pitfalls and how to avoid them
Part 2
8 Processing a sequence of items in the background
9 Canceling background tasks
10 Await your own events
11 Controlling on which thread your asynchronous code runs
12 Exceptions and async/await
13 Thread-safe collections
14 Generating collections asynchronously/await foreach and IAsyncEnumerable

248 pages, Paperback

Published February 25, 2025

12 people are currently reading
8 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
6 (85%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
1 (14%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
1 review
March 25, 2025
This is a book meant for someone that wants to understand the internal workings of Multithreaded and Asynchronous programming. It comes with useful examples and the reasoning behind some concepts or techniques.
It is easy to follow and focused on what the title says.

I think it will be useful to everyone in the programming community.
Profile Image for Petru Cervac.
35 reviews
October 5, 2025
This is the best book on Asynchronous programming in C#. It focuses on high level concepts and tools useful for day to day activities without diving deep into the wonderful mess of esoteric multithreading primitives. I've learned a lot from this book, finding answer to all async related questions I had and made me currios about the rest of the wonderful mess
2 reviews
March 5, 2025
Nicely written book to go into the complex world of asynchronous programming. A lot of developers can write code but only few can completely grasp the nuance of async programming. Highly recommend!
Profile Image for Dmitry Dorogoy.
2 reviews
March 7, 2025
I liked this book. Some parts were complicated for me, so I had to re-read several chapters again. It is especially useful if your work or pet projects involve multithreading - then this book becomes your go-to guide. Highly recommended!
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.