In Semaphore§

See primary documentation in context for method acquire

method acquire()

Acquire access. When other threads have called the method before and the number of permits are used up, the process blocks until threads passed before releases the semaphore.