作者:红色的甜言1986 | 来源:互联网 | 2023-05-18 09:42
Anyonehaveanygoodexperiencewithalock-freememoryallocatorforCc++?任何人都有使用Cc++无锁内存分配器的
Anyone have any good experience with a lock-free memory allocator for C/c++?
任何人都有使用C / c ++无锁内存分配器的良好经验?
I have looked into boost, and libcds, but I am unsure about which library to use.
我已经研究了boost和libcds,但我不确定要使用哪个库。
Background, I have been researching a "Lock-Free, Wait-Free, Non-Blocking, Dynamic Perfect Hashing, Expandable, Concurrent Hash Table" *Yes I know that sounds pretentious, but thats what it is called.
背景,我一直在研究“无锁,无等待,无阻塞,动态完美哈希,可扩展,并发哈希表”*是的我知道这听起来很自命不凡,但这就是所谓的。
Anyways, I am getting ready to start multi-thread testing it, and I need to figure the best way to setup memory allocation, when new nodes are added. (and when I need to allocate arrays of pointers)
无论如何,我正准备开始多线程测试,并且我需要在添加新节点时找出设置内存分配的最佳方法。 (当我需要分配指针数组时)
So does anyone have any good experience with lock free memory allocation?
那么有没有人有无锁内存分配的任何良好经验?
3 个解决方案