Click here to Skip to main content
15,868,016 members
Articles / Programming Languages / C++

Thread-safe std::map with the Speed of Lock-free Map

Rate me:
Please Sign up or sign in to vote.
5.00/5 (19 votes)
1 May 2017CPOL22 min read 60.9K   1.1K   27  
Examples of use and testing of a thread-safe pointer and contention-free shared-mutex
In this article, we will show additional optimizations, examples of use and testing of a thread-safe pointer developed with an optimized shared mutex contfree_safe_ptr. At the end, we will show the comparative graphs of our thread-safe-pointer tests and some of the best lock-free algorithms from libCDS on Intel Core i5 / i7, Xeon, 2 x Xeon processors.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Germany Germany
The author of the YOLOv7/YOLOv4 - the best neural network for object detection.
I use modern C++ and modern CPU/GPU processors to solve tasks that require high performance, which can only be solved now.
I'm interested in HPC, Computer Vision and Deep Learning.
Preferably languages: C++11/14, CUDA C++, Python, SQL

Comments and Discussions