Code example for Semaphore

Methods: sleepacquireavailablePermitsrelease