Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP connection pool. One could easily implement a IMAP connection pool, then take the existing code and implement a LDAP connection pool. The program grows, and now there is a need for a pool of threads. So just take the IMAP connection pool and convert that to a pool of threads (Copy, paste, find, replace????). Need to make some changes to the pool implementation? Not a very easy task, since the code has been duplicated in many places. Re-inventing source code is not an intelligent approach in an object oriented environment which encourages re-usability. It seems to make more sense to implement a pool that can contain any arbitrary type rather than duplicating code. How does one do that? The answer is to use type parameterization, more commonly referred to as templates.
标签: connection pool applications program
上传时间: 2013-12-25
上传用户:playboys0
g729b_pc.rar是G729语音压缩标准的附件B的C语言实现标准源代码。
上传时间: 2015-06-25
上传用户:彭玖华
98年全国大学生数学建模竞赛B题"水灾巡视问题"模拟退火算法。
上传时间: 2015-06-29
上传用户:a6697238
98年全国大学生数学建模竞赛B题"水灾巡视问题"模拟退火算法。
上传时间: 2015-06-29
上传用户:tuilp1a
%96年中国大学生数学建模竞赛B题:洗衣机
上传时间: 2013-12-13
上传用户:hgy9473
个人认为几个比较实用的VHDL源码之二——Behavioural model of a simple 8-bit CPU
标签: Behavioural simple model VHDL
上传时间: 2013-12-16
上传用户:gdgzhym
Hishop 是一款强劲的B2C的网上购物软件,利用它我们能建立起强劲的、自由的、安全的购物平台.系统由C#及SqlServer开发, 是B/S(浏览器/服务器)结构的asp.net程序
上传时间: 2013-12-17
上传用户:PresidentHuang
89S51 与数码管显示器以及键盘SW 对应引脚的联机为: P0.0-------------------------数码管显示器的a脚 P0.1-------------------------数码管显示器的b脚 P0.2-------------------------数码管显示器的c脚 P0.3-------------------------数码管显示器的d脚 P0.4-------------------------数码管显示器的e脚 P0.5-------------------------数码管显示器的f脚 P0.6-------------------------数码管显示器的g脚 P0.7-------------------------数码管显示器的dp脚 ; P2.2-------------------------数码管显示器1的驱动脚 P2.3-------------------------数码管显示器2的驱动脚 P2.4-------------------------数码管显示器3的驱动脚 P2.5-------------------------数码管显示器4的驱动脚 P2.6-------------------------数码管显示器5的驱动脚 P2.7-------------------------数码管显示器6的驱动脚 ; P2.2-------------------------键盘SW1 P2.3-------------------------键盘SW2 P2.4-------------------------键盘SW3 P2.5-------------------------键盘SW4 P2.6-------------------------键盘SW5 P2.7-------------------------键盘SW6
上传时间: 2013-12-29
上传用户:1583060504
SconeServer is a modular, object-orientated and extremely versatile network server framework.
标签: object-orientated SconeServer extremely framework
上传时间: 2015-07-04
上传用户:x4587
"More for C++" is a class library that provides some features that are usually common for object oriented programming languages like Java or Python, but not for C
标签: that for features provides
上传时间: 2015-07-12
上传用户:wuyuying