What is the best way to start learning how to write an extremely simple multithreaded C ++ program that uses a mutex and semaphore?

What package should be used and what will the hello world program look like?

+3
source share
3 answers

Try C ++: Concurrency in Action

Chapter 1. Introduction is freely available on this website and IIRC, which includes the multi-threaded "Hello, World!" C ++ 0x introduces a std::thread standardized way to use streams in C ++, and this book uses this.

+3
source

Try to implement a solution for one of Dijkstra's classic concurrency problems, for example, "Dining philosophers" or producer / consumer problems, etc.

0
source

Source: https://habr.com/ru/post/1769244/


All Articles