System.Threading Namespace

Task Parallel System.Threading

Classes

  ClassDescription
Barrier
Enables multiple tasks to cooperatively work on an algorithm in parallel through multiple phases.
BarrierPostPhaseException
The exception that is thrown when the post-phase action of a Barrier fails.
CancellationTokenSource
Signals to a CancellationToken that it should be canceled.
CountdownEvent
Represents a synchronization primitive that is signaled when its count reaches zero.
LazyInitializer
Provides lazy initialization routines.
ManualResetEventSlim
Provides a slimmed down version of ManualResetEvent.
SemaphoreSlim
Limits the number of threads that can access a resource or pool of resources concurrently.
ThreadLocal<(Of <(T>)>)
Provides thread-local storage of data.

Structures

  StructureDescription
CancellationToken
Propogates notification that operations should be canceled.
CancellationTokenRegistration
Represents a callback delegate that has been registered with a CancellationToken.
SpinLock
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.
SpinWait
Provides support for spin-based waiting.

Enumerations

  EnumerationDescription
LazyThreadSafetyMode
Specifies how a Lazy<(Of <(T>)>) instance should synchronize access among multiple threads.