Summary
This chapter provides a brief overview of the different techniques that can be used to run asynchronous code in a WPF application using C#. The .NET Framework supplies a complete set of components and facilities, available in the System.Threading namespace, that can be used to create parallel code and asynchronous operations and to monitor them.
The first component you saw was the Thread object, a powerful object used to create new threads that will run as isolated parallel processes. Before using this object to run parallel code, you'll need to consider some major architectural issues, like thread synchronization and thread resources sharing.
Another way of running code that doesn't block the main process of the application is to use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access