Chapter 6. Threaded Clients (Responsive Interfaces)

Microsoft .NET brings multithreading to the masses with the new set of classes in the System.Threading namespace. These classes wrap the intricacies of the Microsoft Windows API and make creating new threads as easy as declaring an object and invoking a method. But even though it’s easy to create threads with the .NET class library, it’s not as easy to manage them properly (and safely). To use threading successfully, developers need to adopt a different frame of mind and a few new habits. Without these best practices, a multithreaded application can appear to work correctly in the development environment but develop subtle and difficult-to-diagnose errors when deployed in the real world. These ...

Get Microsoft® .NET Distributed Applications: Integrating XML Web Services and .NET Remoting 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.