When a thread-pool thread is ready for more work, it first looks at the head of its local queue, then in the global queue, and then in the local queues of other threads.
当线程池线程准备好执行更多工作时,它将首先在其本地队列的开始部分查找,然后依次在全局队列和其他线程的本地队列中查找。
When a thread-pool thread is ready for more work, it first looks at the head of its local queue, then in the global queue, and then in the local queues of other threads.
当线程池线程准备好执行更多工作时,它将首先在其本地队列的开始部分查找,然后依次在全局队列和其他线程的本地队列中查找。
应用推荐