Summary


This chapter took a quick look at how to code applications that utilize multiple threads using the System.Threading namespace. Using multithreading in your applications takes careful planning. Too many threads can cause resource issues and not enough threads can cause your applications to seem sluggish and to perform rather poorly.

The System.Threading namespace in the .NET Framework does allow you to manipulate threads; however, this does not mean that the .NET Framework handles all the difficult tasks of multithreading for you. You have to consider thread priority and synchronization issues. This chapter discussed these issues and how to code for them in your C# applications. It also looked at the problems associated with deadlocks and race conditions.

Just remember that if you are going to use multithreading in your C# applications, careful planning should be a big part of your efforts.




Professional C# 2005
Pro Visual C++ 2005 for C# Developers
ISBN: 1590596080
EAN: 2147483647
Year: 2005
Pages: 351
Authors: Dean C. Wills

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net