Queuing system

If a shop got two cashiers, they intend to stick to that one queue until they are finished.
I would like the customers to move from one queue to another when they see that one queue is moving faster.

I have experienced several times that one queue is empty and another one is long.
This is becaus only newly entered customers will go to the shortest queue.