创建 Notifying Blocking Thread Pool Executor

来源:互联网 发布:excel找不到数据有效性 编辑:程序博客网 时间:2024/06/11 22:00

英文的原版文章在http://today.java.net/pub/a/today/2008/10/23/creating-a-notifying-blocking-thread-pool-executor.html

中文翻译的文章在http://developers.sun.com.cn/Java/creating-a-notifying-blocking-thread-pool-executor.html

线程池(Thread Pool) 是并行执行任务收集的实用工具。随着 CPU 引入适合于应用程序并行化的多核体系结构,线程池的作用正日益显现。通过 ThreadPoolExecutor 类及其他辅助类,Java 5 引入了这一框架,作为新的并发支持部分。 ThreadPoolExecutor 框架灵活且功能强大,它支持特定于用户的配置并提供了相关的挂钩(hook)和饱和策略来处理满队列。

 

阻塞线程池的需求

...

建议的解决方案

...

 

 

很不错的文章。