O'Reilly logo

C# Multithreaded and Parallel Programming by Rodney Ringler

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

Summary

In this chapter, you have learned two very important ways to make a particular piece of functionality in an application run asynchronously from the main thread of the application. These two ways are the Application Programming Model and the async/await keywords. These two design techniques allow you to take advantage of the asynchronous execution of a task without designing an application around concurrency. This is especially useful for long-running tasks or tasks that access outside resources. In this way, we do not tie up the main thread of an application while we are waiting for something like a file read, an HTTP GET request, or a database read. These are all tasks whose duration is outside our control and not predictable. It therefore ...

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