Chapter 12. Improving Performance and Scalability with Multitasking

This chapter is about allowing multiple actions to occur at the same time to improve performance, scalability, and user productivity.

In this chapter, we will cover the following topics:

  • Understanding processes, threads, and tasks
  • Running tasks asynchronously
  • Synchronizing access to shared resources
  • Implementing multitasking for a GUI

Note

The Implementing multitasking for a GUI section requires Visual Studio 2017 on Windows 7 or later.

Understanding processes, threads, and tasks

A process, for example, each of the console applications we have created has resources allocated to it, such as memory and threads. A thread executes your code, statement by statement. By default, each process ...

Get C# 7 and .NET Core: Modern Cross-Platform Development - 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.