Java线程池 [英] Java Thread Pool
本文介绍了Java线程池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想学习用Java编写一个线程池
I want to learn to write a thread pool in Java
有人能指出我有用的资源吗?
Can anyone point me to useful resources ?
推荐答案
您可以查看 ThreadPoolExecutor
。虽然你为什么要重新发明轮子?
You could have a look at the source code for ThreadPoolExecutor
from core java. Though why do you want to reinvent the wheel?
这篇关于Java线程池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文