首页 | 本学科首页   官方微博 | 高级检索  
     

对线程池模式的分析及其实现
引用本文:陈勇,宋之毅. 对线程池模式的分析及其实现[J]. 微型电脑应用, 2005, 21(8): 59-62
作者姓名:陈勇  宋之毅
作者单位:东南大学软件学院
摘    要:对于并行处理且处理过程相同时,采用线程池技术是一种简单而高效的机制,尤其用在Web服务器或应用服务器时它能显著地改善服务器应用程序的性能.本文主要介绍了企业级应用程序设计的线程池模式的思想,并用java提供了创建和实现组件的标准设计技术,这些组件用来解决通常并行程序所带来的风险。在设计上采用了工作线程来派遣和处理并行任务,并提供了一种基于面向对象的安全线程池框架,在框架中开发人员和最终用户可以配置和控制线程资源。

关 键 词:设计模式  线程池模式  并发服务  线程安全
文章编号:1007-757X(2005)08-0059-04
收稿时间:2005-01-28
修稿时间:2005-01-28

Analysis on ThreadPool Pattern and Implementation
Cheng Yong,Song Zhiyi. Analysis on ThreadPool Pattern and Implementation[J]. Microcomputer Applications, 2005, 21(8): 59-62
Authors:Cheng Yong  Song Zhiyi
Abstract: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.
Keywords:design pattern ThreadPool paraller service Thread-Safe  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号