A milking system for milking a herd of dairy animals includes a first milking device and a second milking device, an identification device for identifying dairy animals to be milked of a herd of dairy animals, and a control device for determining an estimated treatment time of each dairy animal to be milked. The control device also classifies each dairy animal to be milked with the aid of a criterion on the basis of the estimated treatment time in at least a first or second group of dairy animals. The milking system admits the first group of dairy animals to preferably only the first milking device and admits the second group to preferably only the second milking device.