亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

您現在的位置是:蟲蟲下載站 > 資源下載 > 數據結構 > Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP

Many applications use connection/object pool. A program may require a IMAP connection pool and LDAP

資 源 簡 介

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.

相 關 資 源

主站蜘蛛池模板: 常德市| 息烽县| 亚东县| 岑溪市| 邵阳县| 资溪县| 于都县| 武邑县| 墨竹工卡县| 娄烦县| 宁化县| 永和县| 防城港市| 本溪市| 曲松县| 泰州市| 武功县| 通许县| 普洱| 乌兰察布市| 洪雅县| 白城市| 正阳县| 冷水江市| 手机| 且末县| 潞西市| 从化市| 汨罗市| 丽水市| 昌黎县| 连南| 彭山县| 五华县| 沁源县| 仙游县| 宾川县| 沙雅县| 杭锦旗| 九台市| 穆棱市|