Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ConcurrentHashMap for c++

Is there any ConcurrentHashMap for c++ implementation or something of similar anywhere?

I can't understand why multithreading in c++ is so hard than Java!

like image 725
M4rk Avatar asked Dec 23 '11 16:12

M4rk


2 Answers

There is tbb::concurrent_hash_map and tbb::concurrent_unordered_map of Intel TBB

like image 145
ali_bahoo Avatar answered Sep 30 '22 00:09

ali_bahoo


There is a new open-source library called junction available that contains several new concurrent maps.

https://github.com/preshing/junction

It’s BSD-licensed, so you can use the source code freely in any project, for any purpose.

Find more detail in this blogpost.

Thanks to the author Jeff.

like image 35
Thirupathi Thangavel Avatar answered Sep 30 '22 02:09

Thirupathi Thangavel