Is it possible to implement lock free map in C++

后端 未结 6 916
再見小時候
再見小時候 2020-12-02 23:33

We are developing a network application based C/S, we find there are too many locks adding to std::map that the performance of server became poor.

I wonder if it is

6条回答
  •  自闭症患者
    2020-12-03 00:11

    Actually there's a way, although I haven't implemented it myself there's a paper on a lock free map using hazard pointers from eminent C++ expert Andrei Alexandrescu.

提交回复
热议问题