DEV Community

Discussion on: Thread: Mutex sucks

Collapse
 
jhadheeraj1986 profile image
Dheeraj Jha

Lock free queue sounds interesting. Let me check it.

Collapse
 
bittnkr profile image
bittnkr • Edited

Nice... If you need help, just call me. Currently I'm working alone on it, and will be a pleasure to have have someone to share ideas.

Note that, despite the main test being a producer/consumer pushing integers, it is implemented with generics, you can push anything you want on into the queue, with any number of concurrent threads.

Currently I'm trying to implement some kind of future/promises on it, to make easier to push function calls on it. If you like to handle low level stuff as messing with stack registers I can send you the first drafts.

And recently I've updated the C# version too, it is a lot more readable.