Explaination of thread synchronizaiton by sleeping barber problem