O'Reilly logo

Multithreading with C# Cookbook - Second Edition by Eugene Agafonov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required