The queue used in each case is actually a deque (a double-ended queue, pronounced "deck"), which allows threads to steal work from the back end of another queue, balancing work entering the pool.
所有情况下使用的队列其实是一种双队列(deque)(两端都能输入数据的数据行列,发音为“deck”),它允许线程从另一个队列的后端窃取工作,从而平衡进入线程池的工作。
The queue used in each case is actually a deque (a double-ended queue, pronounced "deck"), which allows threads to steal work from the back end of another queue, balancing work entering the pool.
所有情况下使用的队列其实是一种双队列(deque)(两端都能输入数据的数据行列,发音为“deck”),它允许线程从另一个队列的后端窃取工作,从而平衡进入线程池的工作。
应用推荐