🥶 Managing Concurrency with SemaphoreSlim: Avoid DeadLock!

Опубликовано: 19 Март 2026
на канале: Saeed Esmaeelinejad
1,709
84

In this video, I show you my real experience with fixing a deadlock in a high-load application which was using SemaphoreSlim.

I've covered some caveats in using SemaphoreSlim and CancellationToken which can put your application in a deadlock situation.

👉 Checkout the repo [SemaphoreSlimWithCancellationToken]: https://github.com/sa-es-ir/youtube-s...

#dotnet #csharp #concurrency #semaphore #lock #lockAndSemaphoreSlim

Moments

00:00 - Intro
00:56 - The differences between Lock and SemaphoreSlim
03:27 - The SemaphoreSlim issues to consider
17:00 - Fix the DeadLock!

-------------------------------------------
Follow me on LinkedIn:
  / sa-es-ir