semaphore beginning