Barber sleeping problem