The two methods demonstrate a scenario in which five messages are input to a message queue and the one with the highest priority is taken out of the queue and processed.
2
当您使用复杂算法时,分发请求是基于服务器性能、服务器使用的硬件种类和处理客户优先级的方法等等。
When you use complex algorithms, requests are distributed based on, for instance, how well a server is performing, what kind of hardware the server has, and how customer priority is processed.
3
另一方面,没有什么可以阻止“多时间片”方法中处理不足的线程去动态提高它自己的优先级。
On the other hand, there is nothing that prevents an underfed thread in the "multiple-time-slices" approach from boosting its own priority dynamically.