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

Multithreading and Asynchronous Programming in .NET Core

Multithreading and asynchronous programming are two essential techniques that facilitate the development of highly scalable and performant applications. If the application is not responsive, it affects the user experience and increases the level of dissatisfaction. On the other hand, it also increases the resource usage on the server side, or where the application is running, and also increases the memory size and/or CPU usage. Nowadays, hardware is very cheap, and every machine comes with multiple CPU cores. Implementing multithreading and using asynchronous programming techniques not only increases the performance of the application, but also makes the application more responsive in nature.

This chapter examines the core concepts of multithreading and the asynchronous programming model to help you use them in your projects and increase the overall performance of your applications.

The following is a list of the topics that we will learn about in this chapter:

  • Multithreading versus asynchronous programming
  • Multithreading in .NET Core
  • Threads in .NET Core
  • Thread synchronization
  • Task parallel library (TPL)
  • Creating a task using TPL
  • Task-based asynchronous pattern
  • Design patterns for parallel programming
I/O bound operations are code that is dependent on external resources. Examples include  accessing a  filesystem, accessing a network, and so on.
主站蜘蛛池模板: 江达县| 宁城县| 读书| 锡林郭勒盟| 金阳县| 清镇市| 夏邑县| 铜山县| 博客| 五莲县| 东乡县| 上饶市| 岚皋县| 溆浦县| 民乐县| 新蔡县| 广饶县| 桦甸市| 探索| 龙州县| 朝阳区| 雷州市| 互助| 赤壁市| 东方市| 积石山| 江陵县| 蓝山县| 延安市| 英吉沙县| 交口县| 老河口市| 富民县| 巴彦县| 阳信县| 巴南区| 瑞昌市| 文登市| 扎兰屯市| 黄平县| 汝南县|