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

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

关 键 词:设计模式  线程池模式  并发服务  线程安全
文章编号:1004-373X(2005)16-045-04
收稿时间:2005-04-27
修稿时间:2005年4月27日

Analysis on Thread Pool Pattern and Implementation
CHEN Yong,SHEN Haiyan,SONG Zhiyi.Analysis on Thread Pool Pattern and Implementation[J].Modern Electronic Technique,2005,28(16):45-48.
Authors:CHEN Yong  SHEN Haiyan  SONG Zhiyi
Abstract:Thread pool technology is a simple and effective mechanism for asynchronous processing within the same process, particularly useful for performing asynchronous processing in Web server or application server.It can largely improve the server performance.This article mainly introduces the thread pool 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.The design adopts worker thread pools to dispatch asynchronous task and provides a safe OO(ObjectOriented) thread pool framework which allows application developers and end users to configure and control processor resources.
Keywords:design pattern  thread pool  paraller service  thread safe  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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