【C++项目设计】高并发内存池.zip

上传者: chenlong_cxy | 上传时间: 2023-03-20 10:53:31 | 文件大小: 11.26MB | 文件类型: ZIP
本项目实现的是一个高并发的内存池,它的原型是Google的一个开源项目tcmalloc,tcmalloc全称Thread-Caching Malloc,即线程缓存的malloc,实现了高效的多线程内存管理,用于替换系统的内存分配相关函数malloc和free。该项目就是把tcmalloc中最核心的框架简化后拿出来,模拟实现出一个mini版的高并发内存池,目的就是学习tcmalloc的精华。该项目主要涉及C/C++、数据结构(链表、哈希桶)、操作系统内存管理、单例模式、多线程、互斥锁等方面的技术。 项目详解:https://blog.csdn.net/chenlong_cxy/article/details/122819562?spm=1001.2014.3001.5502

文件下载

资源详情

[{"title":"( 36 个子文件 11.26MB ) 【C++项目设计】高并发内存池.zip","children":[{"title":"ConcurrentMemoryPool","children":[{"title":"ConcurrentMemoryPool.sln <span style='color:#111;'> 1006B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"ConcurrentMemoryPool.pdb <span style='color:#111;'> 1.13MB </span>","children":null,"spread":false},{"title":"ConcurrentMemoryPool.exe <span style='color:#111;'> 74.50KB </span>","children":null,"spread":false},{"title":"ConcurrentMemoryPool.instr.pdb <span style='color:#111;'> 1.34MB </span>","children":null,"spread":false}],"spread":true},{"title":"ConcurrentMemoryPool","children":[{"title":"ThreadCache.h <span style='color:#111;'> 513B </span>","children":null,"spread":false},{"title":"UnitTest.cpp <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"ConcurrentMemoryPool.vcxproj.filters <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"PageCache.cpp <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"UnitTest.obj <span style='color:#111;'> 295.67KB </span>","children":null,"spread":false},{"title":"PageCache.obj <span style='color:#111;'> 216.83KB </span>","children":null,"spread":false},{"title":"ThreadCache.obj <span style='color:#111;'> 201.39KB </span>","children":null,"spread":false},{"title":"vc120.idb <span style='color:#111;'> 1.17MB </span>","children":null,"spread":false},{"title":"Concurre.4629ED6F.tlog","children":[{"title":"link.read.1.tlog <span style='color:#111;'> 4.43KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 4.74KB </span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'> 7.04KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 163.42KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"ConcurrentMemoryPool.lastbuildstate <span style='color:#111;'> 181B </span>","children":null,"spread":false}],"spread":true},{"title":"ConcurrentMemoryPool.log <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"CentralCache.obj <span style='color:#111;'> 217.74KB </span>","children":null,"spread":false},{"title":"Benchmark.obj <span style='color:#111;'> 419.02KB </span>","children":null,"spread":false},{"title":"vc120.pdb <span style='color:#111;'> 668.00KB </span>","children":null,"spread":false},{"title":"ConcurrentMemoryPool.Build.CppClean.log <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"ConcurrentMemoryPool.vcxproj <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"PageCache.h <span style='color:#111;'> 746B </span>","children":null,"spread":false},{"title":"ThreadCache.cpp <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"PageMap.h <span style='color:#111;'> 6.03KB </span>","children":null,"spread":false},{"title":"ObjectPool.h <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"ConcurrentAlloc.h <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"CentralCache.cpp <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"CentralCache.h <span style='color:#111;'> 650B </span>","children":null,"spread":false},{"title":"Benchmark.cpp <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"Common.h <span style='color:#111;'> 7.09KB </span>","children":null,"spread":false}],"spread":false},{"title":"ConcurrentMemoryPool.sdf <span style='color:#111;'> 32.75MB </span>","children":null,"spread":false},{"title":"ConcurrentMemoryPool.v12.suo <span style='color:#111;'> 26.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明