对线程池模式的分析及其实现  被引量:2

Analysis on ThreadPool Pattern and Implementation

在线阅读下载全文

作  者:陈勇[1] 宋之毅[1] 

机构地区:[1]东南大学软件学院

出  处:《微型电脑应用》2005年第8期59-62,65,共4页Microcomputer Applications

摘  要:对于并行处理且处理过程相同时,采用线程池技术是一种简单而高效的机制,尤其用在Web服务器或应用服务器时它能显著地改善服务器应用程序的性能.本文主要介绍了企业级应用程序设计的线程池模式的思想,并用java提供了创建和实现组件的标准设计技术,这些组件用来解决通常并行程序所带来的风险。在设计上采用了工作线程来派遣和处理并行任务,并提供了一种基于面向对象的安全线程池框架,在框架中开发人员和最终用户可以配置和控制线程资源。ThreadPools technology is a simple and effective mechanism for synchronous processing within the same process, particularly useful for performing synchronous processing in Web server or Application server. It can largely improve the server's performance. This article mainly introduces the ThreadPool pattern in the enterprise design and uses java platform to offer standard design techniques for creating and implementing components that solve common concurrent programming challenges. In the design, worker thread is adopted to dispatch synchronous task and a safe OO(Object-Oriented) ThreadPool frameworkis provided, which allows application developers and end-users to configure and control processor resources.

关 键 词:设计模式 线程池模式 并发服务 线程安全 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象