实验结果表明,该机制下排队任务的平均等待时间明显减少。
The experiment results show that the mean wait time of queued tasks decreases apparently in the mechanism.
即使任务占用的时间较长,但消除了瓶颈,并且令牌不用再排队。
Even though the task takes longer, the bottleneck is removed and tokens no longer queue up.
要有效地调整线程池大小,您需要理解正在排队的任务以及它们正在做什么。
To tune the thread pool size effectively, you need to understand the tasks that are being queued and what they are doing.
应用推荐