Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 800
Steven Feldman Avatar asked Mar 25 '11 04:03

Steven Feldman


2 Answers

The pretty graphs show this implementation is good:

http://locklessinc.com/

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

like image 169
Steve-o Avatar answered Oct 19 '22 23:10

Steve-o


There is also streamflow. I haven't used it myself; I just ran into it while reading some publications.

like image 32
zvrba Avatar answered Oct 20 '22 00:10

zvrba