3/6/2003 4:31:57 PM
Give Your .NET-based Application a Fast and Responsive UI with Multiple ThreadsIf your application performs any non-UI processing on the thread that controls the user interface, it may make the app seem slow and sluggish, frustrating users. But writing multithreaded apps for Windows has long been restricted to C++ developers. Now with the .NET Framework, you can take advantage of multiple threads in C# to control the flow of instructions in your programs and isolate the UI thread for a fast and snappy user interface. This article shows you how. Also, it discusses the pitfalls of multiple threads and presents a framework for safe concurrent thread execution.
Users hate slow programs. The more sluggish a program is, the less a user will like it. Judicious use of multiple threads can improve the responsiveness of a program's UI when performing lengthy operations, making everything seem faster. Multithreaded programming in Windows was once the domain of C++ developers, but now it is available in all Microsoft .NET-compliant languages, including Visual Basic .NET. Yet Windows Forms imposes some significant restrictions on the use of threads. This article explains those restrictions and how to work with them to provide a snappy, high-quality UI experience even when the program is performing tasks that are inherently slow.
Other Headlines from MSDN ...
- Using the XSD Inference Utility
- TaskVision Solution Overview: Design and Implementation
- DataSets, Web Services, DiffGrams, Arrays, and Interoperability
- Basics of Cookies in ASP.NET
- Give Your .NET-based Application a Fast and Responsive UI with Multiple Threads
Click here for more MSDN headlines
More Tutorials Headlines ...
- Basics of Cookies in ASP.NET
- Build Hyperlinks into Your Client App with the Windows Forms LinkLabel Control
- Web Application Error Handling in ASP.NET
- Force ASP.NET Apps to Keep-Alive
- Preview and Print from Your Windows Forms App with the .NET Printing Namespace