Search code examples
c++cmemory-managementlock-free

C: Lock-Free Memory Allocation Library


Anyone have any good experience with a lock-free memory allocator for C/c++?

I have looked into boost, and libcds, but I am unsure about which library to use.

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?


Solution

  • The pretty graphs show this implementation is good:

    http://locklessinc.com/

    It's open source GPL 3.0 since 14 Nov 2011 :)