摘要 |
Disclosed are a queue scheduling method and system. The method comprises: selecting a position of a current scheduling pointer, and outputting a queue in a sub-scheduling unit at the position of the current scheduling pointer once; determining whether a start pointer camps; when it is determined that the start pointer camps, moving the start pointer to the position of the current scheduling pointer, and when it is determined that the start pointer does not camp, moving the start pointer to a position of a sub-scheduling unit following the position of the current scheduling pointer along a direction from the position of the start pointer to a position of a tail pointer; and after moving the start pointer, picking a position of a next scheduling pointer, and outputting a queue in a sub-scheduling unit at the position of the next scheduling pointer once. The method is capable of implementing flexible scheduling based on the queue situation of sub-scheduling units to be scheduled, so as to solve the problems of flow jitter and scheduling unevenness during RR pooling scheduling as well as the deterioration of the quality of service resulting from the scheduling unevenness in the prior art. |