15.2. Thread States: Life Cycle of a Thread

At any time, a thread is said to be in one of several thread states that are illustrated in the UML state diagram of Fig. 15.1. This section discusses these states and the transitions between states. Two classes critical for multithreaded applications are Thread and Monitor, both of the System.Threading namespace. This section also discusses several methods of classes Thread and Monitor that cause state transitions. Several of the terms introduced here are discussed in detail in later sections.

Figure 15.1. Thread life cycle.

A Thread object begins its life cycle in the Unstarted ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.