sample of semaphore