add usleep to give others chances to get semaphore