Before adding semaphore timeout
before testing semaphore time out