Share article c# interview question :- What is difference between semaphore and semaphoreslim ?: When we use lock/monitor for concurrency management it just al ...
When we use lock/monitor for concurrency management it just allows 1 thread to pass at a time. Using semaphore and SemaphoreSlim we can allow more than 1 thread to pass from the lock area. SemaphoreSlim is more light weight and used for request coming from within the process while Semaphore is for request coming from external process.
See the following video on concurrent generic collections in c#: -
Click to get c# interview questions and answers
Get more Most asked c# interview questions from author’s blog
MVC Interview questions and answers Article
WCF Interview questions videos
C# Interview Questions & Answers Article
C# design pattern (UNIT of Work Design Pattern)
C# design pattern interview questions – What is Dependency injection ?
C# interview questions and answers: - What is the difference between “==” and .Equals()?
.NET INTERVIEW QUESTIONS & ANSWERS ARTICLE
WPF INTERVIEW QUESTIONS & ANSWERS ARTICLE