Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 721 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 721 Bytes

ThreadingTest

A simple test program to show examples of different ways to create a threadsafe datastructure. Three different strategies are used on the same datastructure to compare performance.

The complete write-up and explanation is in this blog post: Safety and Performance - Threadsafe Datastructures in C++.

Building

ThreadingTest is a single C++ and should be easy enough to build with any compiler. It requires C++17 support for the shared_mutex test.

I have provided a CMakeLists.txt file for easy building via cmake:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release  ..
cmake --build .  
./ThreadingTest