登录
首页 » 数据结构 » connection/object pool. A program may require a IMAP connection po ol and LDAP c...

connection/object pool. A program may require a IMAP connection po ol and LDAP c...

于 2023-05-15 发布 文件大小:170.19 kB
0 198
下载积分: 2 下载次数: 1

代码说明:

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/object pool. A program may require a IMAP connection po ol and LDAP connection pool. One could easily im plemen

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 外部合并排序内存分配
    应用背景外部排序是一个类排序算法,可以处理大量的数据。外部排序时,需要做数据排序不适合在主存储器的计算设备(通常是内存),相反,他们必须驻留在较慢的外部存储器(通常一个硬盘驱动器)。外部排序通常采用混合排序合并策略。在排序阶段,数据块足够小在主内存中进行读取、排序和写入到一个临时的文件。在合并阶段,排序的子文件合并成一个单一的较大文件。关键技术大多数外部排序例程是基于归并排序。他们通常打破一个大的数据文件转化为一个较短的,排序的运行。这些可以通过反复读取数据文件中的一段数据,生成内存,它与普通的快速排序,排序,排序后的数据写入磁盘。经过排序的运行已产生,一个合并算法是用来将排序文件组合成更长的排序文件。最简单的方案是使用双向合并:合并排序2排序文件到一个文件,然后合并2等等,直到有一个大的排序文件。一个更好的计划是一种多路归并算法:它可能合并也许128更短的运行起来。
    2023-05-07 15:35:02下载
    积分:1
  • 图的相关操作:建立图,图的遍历,查找元素,删除元素等
    图的相关操作:建立图,图的遍历,查找元素,删除元素等-Map-related steps: the establishment of map, graph traversal, find elements, delete elements, etc.
    2022-01-22 04:45:46下载
    积分:1
  • array assignment is well
    如何给链表数组赋值,很适合初学数据结构的朋友。-array assignment is well-suited to beginners data structure friend.
    2022-04-26 12:45:20下载
    积分:1
  • unix上的TDS协议实现,实现了sybase/mssql的dblib,ctlib和ODBC
    unix上的TDS协议实现,实现了sybase/mssql的dblib,ctlib和ODBC-unix on the TDS protocol to achieve sybase/mssql of dblib, ctlib, and ODBC
    2022-03-19 08:53:53下载
    积分:1
  • 车辆管理系统的车辆管理系统
    一个车辆管理系统 一个车辆管理系统-A vehicle management system for a vehicle management system
    2023-01-16 08:15:03下载
    积分:1
  • using c++ to write for ic design layout source routing tools used btree structur...
    用c++写的用于ic设计中布图布线的工具源码,采用btree结构,包含文档-using c++ to write for ic design layout source routing tools used btree structure, including documentation
    2022-03-22 21:38:36下载
    积分:1
  • 成绩分析系统 可分析学生几个学期以来的学习状况
    成绩分析系统 可分析学生几个学期以来的学习状况-performance analysis system can be analyzed several students since the semester learning
    2023-06-25 08:40:03下载
    积分:1
  • 中的贪心法装箱问题,果给出装箱的办法和每个箱的容量。...
    数据结构中的贪心法装箱问题,结果给出装箱的办法和每个箱的容量。-Data structure in the bin-packing problem greedy method, the result is given packing methods and the capacity of each box.
    2022-03-13 05:54:16下载
    积分:1
  • 我写的小程序是关于排序算法的,功能比较全
    我写的数据结构小程序是关于排序算法的,功能比较全-The little procedure of data structure that I wrote is about arranging in an order the algorithm, the function is more complete
    2022-02-14 18:01:22下载
    积分:1
  • 哈夫曼树
    在 C + + 包括节点和整个数据结构和 haffcode 执行完整的哈夫曼树
    2022-02-28 09:21:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载