Classes
-
Abandoned
Mutex The exception that is thrown when one thread acquires a Mutex object that another thread has abandoned by exiting without releasing it.Exception -
Async
Local`1 sealed Represents ambient data that is local to a given asynchronous control flow, such as an asynchronous method. -
Auto
Reset sealed Represents a thread synchronization event that, when signaled, resets automatically after releasing a single waiting thread. This class cannot be inherited.Event - Barrier Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases.
-
Barrier
Post The exception that is thrown when the post-phase action of a Barrier failsPhase Exception -
Cancellation
Token Signals to a CancellationToken that it should be canceled.Source -
Compressed
Stack Provides methods for setting and capturing the compressed stack on the current thread. This class cannot be inherited. -
Countdown
Event Represents a synchronization primitive that is signaled when its count reaches zero. -
Event
Wait Represents a thread synchronization event.Handle -
Execution
Context sealed Manages the execution context for the current thread. This class cannot be inherited. -
Host
Execution Encapsulates and propagates the host execution context across threads.Context -
Host
Execution Provides the functionality that allows a common language runtime host to participate in the flow, or migration, of the execution context.Context Manager - Interlocked
-
Lazy
Initializer static Provides lazy initialization routines. -
Lock
Recursion The exception that is thrown when recursive entry into a lock is not compatible with the recursion policy for the lock.Exception -
Manual
Reset sealed Represents a thread synchronization event that, when signaled, must be reset manually. This class cannot be inherited.Event -
Manual
Reset Represents a thread synchronization event that, when signaled, must be reset manually. This class is a lightweight alternative to ManualResetEvent.Event Slim - Monitor static Provides a mechanism that synchronizes access to objects.
- Mutex sealed A synchronization primitive that can also be used for interprocess synchronization.
- Overlapped
-
Pre
Allocated sealed Represents pre-allocated state for native overlapped I/O operations.Overlapped -
Reader
Writer sealed Defines a lock that supports single writers and multiple readers.Lock -
Reader
Writer Lock Slim -
Registered
Wait sealed Represents a handle that has been registered when calling RegisterWaitForSingleObject(System.Threading.WaitHandle, System.Threading.WaitOrTimerCallback, System.Object, System.UInt32, System.Boolean). This class cannot be inherited.Handle - Semaphore
-
Semaphore
Full The exception that is thrown when the Release method is called on a semaphore whose count is already at the maximum.Exception -
Semaphore
Slim Represents a lightweight alternative to Semaphore that limits the number of threads that can access a resource or pool of resources concurrently. -
Synchronization
Context -
Synchronization
Lock The exception that is thrown when a method requires the caller to own the lock on a given Monitor, and the method is invoked by a caller that does not own that lock.Exception - Thread Creates and controls a thread, sets its priority, and gets its status.
-
Thread
Abort Exception -
Thread
Exception Provides data for the ThreadException event.Event Args -
Thread
Interrupted The exception that is thrown when a Thread is interrupted while it is in a waiting state.Exception -
Thread
Local`1 Provides thread-local storage of data. -
Thread
Pool -
Thread
Pool Bound Handle -
Thread
Start sealed The exception that is thrown when a failure occurs in a managed thread after the underlying operating system thread has been started, but before the thread is ready to execute user code.Exception -
Thread
State The exception that is thrown when a Thread is in an invalid ThreadState for the method call.Exception - Timeout static Contains constants that specify infinite time-out intervals. This class cannot be inherited.
- Timer sealed Provides a mechanism for executing a method on a thread pool thread at specified intervals. This class cannot be inherited.
- Volatile
-
Wait
Handle abstract Encapsulates operating system-specific objects that wait for exclusive access to shared resources. -
Wait
Handle The exception that is thrown when an attempt is made to open a system mutex, semaphore, or event wait handle that does not exist.Cannot Be Opened Exception -
Wait
Handle static Provides convenience methods to for working with a safe handle for a wait handle.Extensions
Structures
-
Async
Flow Provides the functionality to restore the migration, or flow, of the execution context between threads.Control -
Async
Local The class that provides data change information to AsyncLocal`1 instances that register for change notifications.Value Changed Args`1 -
Cancellation
Token Propagates notification that operations should be canceled. -
Cancellation
Token Represents a callback delegate that has been registered with a CancellationToken.Registration -
Lock
Cookie Defines the lock that implements single-writer/multiple-reader semantics. This is a value type. -
Native
Overlapped Provides an explicit layout that is visible from unmanaged code and that will have the same layout as the Win32 OVERLAPPED structure with additional reserved fields at the end. -
Spin
Lock Provides a mutual exclusion lock primitive where a thread trying to acquire the lock waits in a loop repeatedly checking until the lock becomes available. -
Spin
Wait Provides support for spin-based waiting.
Interfaces
-
IThread
Pool Represents a work item that can be executed by the ThreadPool.Work Item
Enumerations
-
Apartment
State Specifies the apartment state of a Thread. -
Event
Reset Mode -
Lazy
Thread Specifies how a Lazy`1 instance synchronizes access among multiple threads.Safety Mode -
Lock
Recursion Specifies whether a lock can be entered multiple times by the same thread.Policy -
Thread
Priority -
Thread
State
Delegates
-
Context
Callback Represents a method to be called within a new context. -
IOCompletion
Callback Receives the error code, number of bytes, and overlapped value type when an I/O operation completes on the thread pool. -
Parameterized
Thread Start -
Send
Or Represents a method to be called when a message is to be dispatched to a synchronization context.Post Callback -
Thread
Exception Represents the method that will handle the ThreadException event of an Application.Event Handler -
Thread
Start Represents the method that executes on a Thread. -
Timer
Callback Represents the method that handles calls from a Timer. -
Wait
Callback Represents a callback method to be executed by a thread pool thread. -
Wait
Or Represents a method to be called when a WaitHandle is signaled or times out.Timer Callback
Assemblies
- netstandard / View namespace in assembly
-
System.
Private. / View namespace in assemblyCore Lib -
System.
Runtime / View namespace in assembly -
System.
Threading / View namespace in assembly -
System.
Threading. / View namespace in assemblyOverlapped -
System.
Threading. / View namespace in assemblyTasks -
System.
Threading. / View namespace in assemblyThread -
System.
Threading. / View namespace in assemblyThread Pool -
System.
Threading. / View namespace in assemblyTimer