What is semaphore in c#?



What is semaphore in c#?..

Answer / Mradul Kumar Verma

"Semaphores in C# are synchronization primitives that control access to shared resources by multiple threads. They allow a specified number of threads to access the resource at any given time, preventing contention and improving performance. Semaphores can be useful for managing concurrent operations in multi-threaded applications."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

If you want to convert a base type to a derived type, what type of conversion do you use?

1 Answers  


Is c++ or c# better?

1 Answers  


What is lock in c#?

1 Answers  


why we can't create an object for a static class?? what is the reason behind this?

4 Answers   HCL,


Can an int be negative c#?

1 Answers  


What is the use of nullable types in c#?

1 Answers  


In .NET which is the smallest unit of execution?

1 Answers   Siebel,


What issues can be faced while delivering code?

1 Answers   TCS,


Why do we overload constructors?

1 Answers  


What is the advantage of dependency injection?

1 Answers  


How to rotate an Image in C#?

1 Answers   Petranics Solutions,


What are the 3 elements of delegation?

1 Answers  


Categories