System.Threading Namespace

Provides fundamental types that support multithreaded programming, such as synchronization primitives, thread-local storage, thread pooling, and the thread-safe queue.

Classes

Class

Thread

Represents a thread of execution in the common language runtime.

Class

ThreadPool

Provides a pool of threads that can be used to execute background operations.

Class

Mutex

Represents a thread-safe mechanism for managing access to a resource.

Class

Semaphore

Constrains the number of threads that can access a shared resource or perform an action concurrently.

Class

Monitor

Provides synchronization primitives for multithreaded programming.

Class

CancellationTokenSource

Notifies one or more CancellationToken objects that an operation should be canceled.

Class

Task

Represents an asynchronous operation.

Interfaces

Interface

IAsyncResult

Supports asynchronous operations.

Interface

ICancellationTokenSource

Represents a source of cancellation tokens.

Enums

Enum

ThreadState

Specifies the states of a thread.

Enum

ApartmentState

Specifies the threading model of a thread.