CLASSICAL-SYNCHRONIZATION-BARBER-PROBLEM-
The sleeping barber problem is a classic inter-process communication and synchronization problem that illustrates the complexities that arise when there are multiple operating system processes. The problem was originally proposed in 1965 by computer science pioneer Edsger Dijkstra,who used it to make the point that general semaphores are often superfluous.