Chapter 9. Using Asynchronous I/O

In this chapter, we will review asynchronous I/O operations in detail. You will learn the following recipes:

  • Working with files asynchronously
  • Writing an asynchronous HTTP server and client
  • Working with a database asynchronously
  • Calling a WCF service asynchronously

Introduction

In the previous chapters, we already discussed how important it is to use asynchronous I/O operations properly. Why does it matter so much? To have a solid understanding, let's consider two kinds of applications.

When we run an application on a client, one of the most important things is to have a responsive user interface. This means that no matter what is happening with the application, all user interface elements, such as buttons and progress ...

Get Multithreading with C# Cookbook - Second Edition 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.