Asynchronous programming in .NET
Twitter @GerardoLijs C# MeetUp Barcelona April 2019 Content What is Asynchronous Programming CPU-bound vs IO-bound Obsolete patterns Tasks and async/await Practical use cases • Responsive user interfaces • Scalability and performance in web applications @GerardoLijs CPU-bound operations • Use Task.Run to execute expensive CPU-bound code in the ThreadPool • Define a Task returning method • In general the time you will need asynchronous to deal with IO-bound operations and the times you will use CPU-bound operations you will probably use a library that provides asynchronous methods for you to interact0 码力 | 29 页 | 942.73 KB | 1 年前3
共 1 条
- 1