The System.Threading Namespace

The .NET Framework has a rich collection of classes and enumerations that are needed for writing multithreaded applications, which are located in the System.Threading namespace.

The System.Threading.Thread Class

Directly inheriting from the System.Object class, the Thread class provides the necessary methods for creating, aborting, suspending, and resuming threads. In addition, several properties exist for controlling the priority and determining other useful information. Listing 14.1 contains a partial definition of the Thread class.

Listing 14.1. Declaration of the System.Threading.Thread Class
System.Threading.Thread = class(System.Object) public constructor Create(start: ThreadStart); procedure Start; // terminate ...

Get Delphi for .NET Developer’s Guide 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.