ELI5: Explain Like I'm 5

Sleeping barber problem

The sleeping barber problem is about what happens when there are too many people waiting for a haircut in a barbershop, and not enough barbers to cut their hair. In this situation, some people have to wait a really long time or even leave without getting their haircut. The problem is figuring out the best way to organize the people so everyone can get their haircut in the quickest and most fair way.