Java Design Patterns Question:

Explain about semaphores?

Java Patterns Interview Question
Java Patterns Interview Question

Answer:

They are mostly used as concurrency control constructs. They adhere and support Sync interface and conform to acquire release protocol. It adheres to a set of permits initialized in a constructor. A semaphore can also be described on the basis of a metaphor.


Previous QuestionNext Question
Explain about locks?Explain about Template method?