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

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.
主站蜘蛛池模板: 攀枝花市| 达州市| 汪清县| 额济纳旗| 静安区| 北海市| 平顺县| 周口市| 屏东市| 依兰县| 白银市| 霸州市| 涞源县| 泾川县| 肃北| 南投市| 离岛区| 临安市| 卓尼县| 彩票| 涟源市| 伊金霍洛旗| 自治县| 闸北区| 修武县| 剑川县| 衡南县| 乌恰县| 来凤县| 衡水市| 屏东县| 伊宁市| 江川县| 海淀区| 黔南| 镇巴县| 任丘市| 平泉县| 鄂托克旗| 西林县| 东莞市|