System.Threading Namespace
Provides classes and interfaces that enable multithreaded programming.
Classes (9)
Thread– Represents an independent execution path.ThreadPool– Provides a pool of threads that can be used to execute tasks.Mutex– Provides mutual exclusion synchronization primitive.Semaphore– Limits the number of threads that can access a resource.SemaphoreSlim– Lightweight semaphore for async synchronization.Monitor– Provides a mechanism that synchronizes access to objects.CancellationToken– Propagates notification that operations should be canceled.Task– Represents an asynchronous operation.TaskScheduler– Controls how tasks are scheduled.
Enumerations (3)
ThreadPriority– Thread priority levels.ApartmentState– Apartment state for a COM thread.ThreadState– Current execution state of a thread.
Interfaces (2)
ICancelable– Provides a Cancel method for cooperative cancellation.IAwaitable– Represents an awaitable type.