Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications

Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications book cover

Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications

Author(s): Vaskaran Sarcar (Author)

  • Publisher: Apress
  • Publication Date: 18 Sept. 2024
  • Edition: First Edition
  • Language: English
  • Print length: 484 pages
  • ISBN-10: B0D5LQ9FTK
  • ISBN-13: 9798868804878

Book Description

If you need to understand concurrency, this book is your guide to the fundamentals behind the advanced software you seek to implement to achieve highly responsive and scalable code. Support for parallel computation is an essential part of concurrency. Concurrency is an advanced concept and solutions are not straightforward. Many developers have been burned by it and are still being burned by it. This book aims to simplify the concept for C# developers. It tries to simplify the concept using the Task Parallel Library (TPL), Concurrent Collections, Parallel LINQ (PLINQ), Asynchronous Programming Patterns, and related topics.

The book starts with an overview of TPL and discusses Tasks. Understanding these areas is necessary to learn the concepts that follow in the book. You will go through special scenarios, such as handling exceptions and cancellations, followed by demonstrations of synchronization techniques and concurrent collections. You will see demonstrations of parallel loops to speed up the computations. And you'll understand PLINQ in detail. Finally, you'll learn how to simplify asynchronous programming with async and await keywords is discussed.

The book contains “Q&A sessions”, review questions, and exercises (in .NET 8 and C#12). After reading the book, you will be able to understand advanced concepts in parallel programming and implement them in your code.

What You Will Learn

  • Understand concurrent and multi-threaded development
  • Understand how some modern-day C# features can promote parallel programming
  • Demonstrate the latest patterns for parallel development

Who This Book Is For

Developers familiar with C# but are absolute beginners for parallel programming.

Editorial Reviews

Review

"The book is an enjoyable read and easy to follow, and at the same time detailed enough to give students an idea of the challenges and solutions in concurrent systems. It uses C# and .NET as object-oriented language examples to showcase the algorithms, but it will also be useful to anyone designing message passing interface (MPI)-kind software where they are figuring out how to parallelize a large piece of software." (Mariam Kiran, Computing Reviews, January 29, 2025)

From the Back Cover

If you need to understand concurrency, this book is your guide to the fundamentals behind the advanced software you seek to implement to achieve highly responsive and scalable code. Support for parallel computation is an essential part of concurrency. Concurrency is an advanced concept and solutions are not straightforward. Many developers have been burned by it and are still being burned by it. This book aims to simplify the concept for C# developers. It tries to simplify the concept using the Task Parallel Library (TPL), Concurrent Collections, Parallel LINQ (PLINQ), Asynchronous Programming Patterns, and related topics.

The book starts with an overview of TPL and discusses Tasks. Understanding these areas is necessary to learn the concepts that follow in the book. You will go through special scenarios, such as handling exceptions and cancellations, followed by demonstrations of synchronization techniques and concurrent collections. You will see demonstrations of parallel loops to speed up the computations. And you'll understand PLINQ in detail. Finally, you'll learn how to simplify asynchronous programming with async and await keywords is discussed.

The book contains “Q&A sessions”, review questions, and exercises (in .NET 8 and C#12). After reading the book, you will be able to understand advanced concepts in parallel programming and implement them in your code.

What You Will Learn

  • Understand concurrent and multi-threaded development
  • Understand how some modern-day C# features can promote parallel programming
  • Demonstrate the latest patterns for parallel development

View on Amazon

电子书代发PDF格式价格30元我要求助
未经允许不得转载:Wow! eBook » Parallel Programming with C# and .NET: Fundamentals of Concurrency and Asynchrony Behind Fast-Paced Applications