Sleeping barber problem