What is Semaphore?
A. Grant more than one thread access to a shared resource at the same time.
B. Useful when a collection of resources is being synchronized
C. Make use of a counter to control access to a shared resource
D. Only b & c
Answer:A
What is Semaphore?
A. Grant more than one thread access to a shared resource at the same time. B. Useful when a collection of resources is being synchronized C. Make use of a counter to control access to a shared resource D. Only b & c