What’s wrong with the barber’s sleep?

Print anything with Printful



The sleeping barber problem refers to a situation where processes are waiting for resources, causing a delay in efficiency. This can be seen in various computing situations, such as call centers with insufficient representatives or computer networks with insufficient resources. Reconfiguring resources can help manage the volume and improve efficiency.

In the computer world, a sleeping barber problem is the fancy name used to identify a situation where processes are currently in a waiting pattern waiting for resources to reach some kind of resolution. The reference to the sleeping barber has to do with the lack of productivity a barber experiences when there are no customers in the shop waiting for a haircut. This one plays on the old stereotype of a barber sleeping in his chair until a customer comes in the door looking for a haircut. According to this analogy, the barber immediately awakes from his slumber when awakened by a customer, provides the haircut, and promptly returns to sleep once the customer walks out the door, then waking up when the next customer enters. In terms of computer function, this refers to resources that are in a dormant state until they are needed by a process, and then return to that same state until the next process starts, creating a lag between processes that could reduce overall efficiency.

The image used to describe the sleeping barber problem has to do with a barber having only one occasional customer, usually finishing with one before the next customer arrives, or at least getting to the second customer with only a minimum of waiting . As long as the number of customers waiting in line is kept to a minimum and no one gets impatient and walks out, it can be said that there is no problem and the lone barber keeps up with the demand. At the same time, if the shop gets inundated with customers requesting haircuts but the barber is already busy, then there’s a high chance some of those customers won’t wait and leave.

The same type of sleeping barber problem can be seen with various types of computing situations involving computer technology that needs some sort of upgrade to handle increased demand. For example, if a company’s call center is flooded with inbound calls from customers needing help now, but the number of customer service representatives isn’t sufficient to keep up with the demand, a portion of those customers will drop out. calls and possibly seek a relationship with a competitor. Similarly, within the computing systems of a computer network, if the resources devoted to timely processing of tasks are insufficient for the number of tasks involved, some of those processes will run into what is known as a timeout, and maybe even finish. The end result is a loss of efficiency which can in turn slow down other processes scheduled to follow those that have expired.

There is no right way to handle a sleeping barber problem. Depending on the configuration of the computer equipment used, there may be ways to implement new approaches that help reallocate resources so that tasks can be managed more efficiently. For example, reconfiguring auto attendant services for a call center could save time by automatically routing the next call in the hold queue to a representative without the need for that representative to manually take another held line. Just as adding more barbershops to a shop makes it easier to handle customers looking for a haircut, adding more resources in terms of inbound lines and customer service stations to handle call volume would also make it more easy to manage the volume without triggering many delays . Similarly, expanding resources on a network to support additional functions and processes can also help minimize a sleeping barbershop problem and allow the system to run more efficiently.




Protect your devices with Threat Protection by NordVPN


Skip to content