Testing Commands for semaphore