Chapter 9. Concurrency in the User Interface

In this chapter, we will review the aspects of using asynchrony in client applications. We will learn about how a Windows application works and define what an UI thread and message loop is. While going through the details of execution and synchronization contexts, we will dig into a C# compiler-generated code and see how it is related to the use of the await keyword in your program.

The importance of asynchrony for UI

While a server application in general has to be scalable before everything else, a client application is different. It is usually intended to run for one user on one computer, and thus the user expects it to run fast and not cause troubles for the other applications running in the system. ...

Get Mastering C# Concurrency now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.