Skip to content

Sample code to accompany a blog post (see README)

Notifications You must be signed in to change notification settings

andrewstephens75/ThreadingTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sample code to accompany a blog post (see README)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published