Does SemaphoreSlim (.NET) prevent same thread from entering block?
From the documentation: The SemaphoreSlim class doesn’t enforce thread or task identity on calls to the Wait, WaitAsync, and Release methods In other words, the class doesn’t look to see which thread is calling it. It’s just a simple counter. The same thread can acquire the semaphore multiple times, and that will be the same … Read more