static class RolapUtil.Semaphore extends Object
Semaphore
is a primitive for process synchronization.
Given a semaphore initialized with count
, no more than
count
threads can acquire the semaphore using the
enter()
method. Waiting threads block until enough threads have
called leave()
.
Constructor and Description |
---|
RolapUtil.Semaphore(int count) |
RolapUtil.Semaphore(int count)