Semaphore Slim and Async

added by DotNetKicks
8/16/2016 5:49:01 PM

1 Kicks, 343 Views

On this post I will focus on async waiting on Semaphore (using SemaphoreSlim). In general .NET is having 2 Semaphore implementations: - Semaphore which is the legacy implementation (but support cross process operations) - SemaphoreSlim which is lightweight version. It bring some performance improvements but it don't support cross process operation.