Documentation for method acquire assembled from the following pages:

Class: Semaphore §

From Semaphore

(Semaphore) 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.