[Previous] [Contents] [Next]

Summary

Multithreading allows applications to divide tasks so that they work independently of each other to make the most efficient use of the processor's time. However, adding multiple threads to an application is not the right choice in all situations and can sometimes slow the application down. Thread management and creation in C# is done through the System.Threading.Thread class. An important concept related to the creation and use of threads is thread safety. Thread safety means that the members of an object always maintain a valid state when used concurrently by multiple threads. It's important that along with learning the syntax of multithreading you also understand when to use it: to increase concurrency, to simplify design, and to better utilize CPU time.

[Previous] [Contents] [Next]