Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting
by Matthew MacDonald
Threading in .NET
There are essentially two ways to take advantage of multithreading with .NET:
Create a new thread manually by using the System.Threading.Thread class.
Use a .NET type that has built-in support for asynchronous use. This includes the types used for file I/O, the XML Web service proxy class, and the Delegate type.
This section focuses on the second approach, which provides most of the benefits of custom threading and shields you from many of the risks. Later in the chapter, we’ll examine the first approach and custom threading.
Of course, it’s also worth noting that many parts of a .NET application gain the benefits of threading completely for free. When you use the .NET printing classes, for example, the PrintDocument.PrintPage event ...
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