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
The System.Threading.SemaphoreSlim provides a lightweight semaphore class that doesn't use Windows kernel semaphores.