官术网_书友最值得收藏!

  • Mastering C# Concurrency
  • Eugene Agafonov Andrew Koryavchenko
  • 339字
  • 2021-07-09 21:26:04

What this book covers

Chapter 1, Traditional Concurrency, covers common problems with multithreading and solutions to these problems. You will refresh your knowledge about basic locking techniques and how to make locking more efficient.

Chapter 2, Lock-Free Concurrency, goes further into performance optimization. It covers various ways to write concurrent programs without locking, making the code fast and reliable.

Chapter 3, Understanding Parallelism Granularity, explains another important aspect of organizing your parallel code—splitting a computational workload between threads. It introduces coarse-grained and fine-grained approaches, showing their pros and cons.

Chapter 4, Task Parallel Library in Depth, goes into the details of Task Parallel Library—a framework to organize your concurrent program as a set of related tasks. You will find the internals of TPL reviewed and explained.

Chapter 5, C# Language Support for Asynchrony, is a deep dive into the C# language infrastructure. The chapter shows exactly how the async and await keywords work and how you can write your own await-compatible code.

Chapter 6, Using Concurrent Data Structures, covers the use of data structures in a concurrent program in detail, including standard .NET concurrent collections and custom thread safe collections implementations.

Chapter 7, Leveraging Parallel Patterns, reviews programming patterns related to parallel applications. The chapter describes different kinds of patterns—historical .NET idioms, useful code snippets, and a high-level parallel pipeline pattern.

Chapter 8, Server-Side Asynchrony, is a solution description to the problem of using asynchrony on the server. It explains why it is very important to distinguish asynchrony from parallelism, and how it can affect the scalability and reliability of your server.

Chapter 9, Concurrency in the User Interface, describes the details of how the user interface is implemented, what a message loop is, and why it is very important to keep the UI thread nonblocked.

Chapter 10, Troubleshooting Parallel Programs, explains how to find out what is wrong with your parallel program. You will learn how to write unit tests for an asynchronous code, how to debug it, and find performance bottlenecks.

主站蜘蛛池模板: 永泰县| 河源市| 富顺县| 汽车| 海口市| 汉中市| 霍城县| 东丰县| 斗六市| 浙江省| 邢台市| 镇康县| 新余市| 静宁县| 汤阴县| 铜山县| 台东市| 瑞安市| 宁陕县| 西城区| 桂阳县| 鄂尔多斯市| 栾川县| 津南区| 濉溪县| 夹江县| 温宿县| 龙江县| 兰考县| 合川市| 宝坻区| 喀喇沁旗| 来宾市| 孟村| 安溪县| 即墨市| 阳东县| 绍兴市| 晋江市| 原平市| 公主岭市|