Mastering C# Concurrency

More Information
  • Apply general multithreading concepts to your application’s design
  • Leverage lock-free concurrency and learn about its pros and cons to achieve efficient synchronization between user threads
  • Combine your asynchronous operations with Task Parallel Library
  • Make your code easier with C#’s asynchrony support
  • Use common concurrent collections and programming patterns
  • Write scalable and robust server-side asynchronous code
  • Create fast and responsible client applications
  • Avoid common problems and troubleshoot your multi-threaded and asynchronous applications

Starting with the traditional approach to concurrency, you will learn how to write multithreaded concurrent programs and compose ways that won't require locking. You will explore the concepts of parallelism granularity, and fine-grained and coarse-grained parallel tasks by choosing a concurrent program structure and parallelizing the workload optimally. You will also learn how to use task parallel library, cancellations, timeouts, and how to handle errors. You will know how to choose the appropriate data structure for a specific parallel algorithm to achieve scalability and performance. Further, you'll learn about server scalability, asynchronous I/O, and thread pools, and write responsive traditional Windows and Windows Store applications.

By the end of the book, you will be able to diagnose and resolve typical problems that could happen in multithreaded applications.

  • Learn to combine your asynchronous operations with Task Parallel Library
  • Master C#’s asynchronous infrastructure and use asynchronous APIs effectively to achieve optimal responsiveness of the application
  • An easy-to-follow, example-based guide that helps you to build scalable applications using concurrency in C#
Page Count 284
Course Length 8 hours 31 minutes
ISBN 9781785286650
Date Of Publication 28 Oct 2015


Eugene Agafonov

Eugene Agafonov leads the development department at ABBYY and lives in Moscow. He has over 15 years' professional experience in software development, and he started working with C# when it was in its Beta version. He was a Microsoft MVP in development technologies in 2006-2018, and he often speaks at local software development conferences in Russia about cutting-edge technologies in modern distributed applications development. His main professional interests are cloud-based software architecture, scalability, and reliability. He is the author of the Multithreading with C# Cookbook and Mastering C# Concurrency books by Packt Publishing.

Andrew Koryavchenko

Andrew Koryavchenko is a software developer and an architect who lives in Moscow, Russia. He is one of the founders of—the largest Russian software developers' community portal.

His specialty is ERP systems and developer tools. He participated in ReSharper Visual Studio extension development, which is a well-known productivity tool for .NET developers. Currently, he is working on parsing and compilation tools for .NET development and also supports and develops the portal.

Andrew regularly speaks at online and offline events and conferences dedicated to Microsoft technologies, and he publishes articles on software development topics. He also used to teach Enterprise Software Development course in Kuban State University.

Andrew has been a Microsoft MVP in C# since 2005.