System.Threading.SemaphoreSlim Class

A lightweight alternative to System.Threading.Semaphore that limits the number of threads that can access a resource or pool of resources concurrently.

See Also: SemaphoreSlim Members

Syntax

[System.Diagnostics.DebuggerDisplay("Current Count = {currCount}")]
public class SemaphoreSlim : IDisposable

Remarks

The System.Threading.SemaphoreSlim provides a lightweight semaphore class that doesn't use Windows kernel semaphores.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0