摘要 |
Embodiments of the present invention disclose a queue scheduling method and apparatus, which can not only implement scheduling of a large number of queues, but also ensure that the queues uniformly send service data. The method includes: determining whether service data exists in each to-be-scheduled data queue and determining whether the to-be-scheduled data queues are allowed to send data; if it is determined that the service data exists in the to-be-scheduled data queues and the to-be-scheduled data queues are allowed to send data, placing queue marks of the to-be-scheduled data queues into a mark queue; scheduling queue marks of the to-be-scheduled data queues from the mark queue in sequence, scheduling the to-be-scheduled data queues corresponding to the queue marks, and enabling the to-be-scheduled data queues corresponding to the queue marks to send service data not exceeding predetermined data amounts. |