Scientists have created a universal mathematical approach to queuing theory. It allows calculating the most efficient operation of the systems where the processing of incoming flow takes place. In particular, it can be used to eliminate queues in shops and banks and eliminate mobile communication congestion during the holidays.