If a thread is permanently consumed with such a task, it has effectively been removed from the pool.
如果某个线程被这样一个任务永久地消耗着,那么它实际上就被从池除去了。
MapLeaker processes tasks in a thread pool and records the status of each task in a Map.
MapLeaker在线程池中处理任务,并在一个map中记录每一项任务的状态。
Any caller that attempted to pass a task to a pool thread would find the pool empty, and its thread would block while it waited for an available pool thread.
试图向池线程传递任务的调用者都会发现池为空,在调用者等待一个可用的池线程时,它的线程将阻塞。
应用推荐