Thread Basics

A thread is a logical unit of execution for a program. The use of multiple threads in an application enables the programmer to create a more pleasurable experience for the user. Before getting into the details of how to employ the use of threads, you will learn some of the more important properties and methods of the thread class. In the following sections, you will learn how to create, run, join, stop, suspend, and pause a thread.

Understanding the Key Thread Properties and Methods

The thread class has several key properties. These properties enable you to control the basic makeup of a thread class. Table 9.1 is a list of some of the more important properties.

Table 9.1. Notable Members of the Thread class
PropertyDescription
ApartmentState ...

Get Microsoft® Visual C#® .NET 2003 Unleashed 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.