What is the purpose of the Semaphore class in C# multithreading?
A. To provide synchronization mechanisms for multithreaded programs
B. To signal one or more waiting threads that an event has occurred
C. To manage a collection of threads
D. To limit the number of threads that can access a resource at a time
Answer: Option D

Join The Discussion