Code example for Semaphore

Methods: availablePermitsrelease