1.

What is semaphore?

Answer»

Semaphore is REGARDED as a thread synchronization construct that is usually required to CONTROL and manage the access to the SHARED resource USING counters. It simply sets the limit of the thread. The semaphore class is defined within the package java.util.concurrent and can be used to send signals between threads to avoid missed signals or to guard critical SECTIONS. It can also be used to implement resource pools or bounded collection.



Discussion

No Comment Found