why the sleep in here... if we wanna wait for the other thread to end, we should have another semaphore in here.