1.0 Contents
This repository provides a collection of thread useage demos and examples of Tasks.
-
Cpp11-Concurrency
A set of about a dozen projects that illustrate basic thread operations.
-
Cpp11-ThreadTechniques
Techniques for interoperating with threads, including passing and returning values.
-
Cpp11-ThreadWithCallback
Example of triggering a callback when a thread completes.
-
Cpp11-Tasks
Tasks use a static threadpool for executing callable objects concurrently, e.g., pieces of work
needed for some analysis.
-
Cpp11-BlockingQueue
A thread-safe queue that blocks deQuer when empty. It's implemented with a mutex and
condition variable.
-
LockPerformance
Compares performance of several locking constructs provided by Win32 and by C++ thread library.
2.0 Build
All code was built with Visual Studio, Community Edition - 2019, and tested on Windows 10.