Let's go ahead and compile the program with the following command:
g++ main.cpp -o concurrency.exe -std=c++17 -lpthread
Let's launch concurrency.exe, as shown in the following screenshot, and understand the difference between the previous program and the current version:
Congrats! You have learned a lot about concurrency in C++ so far.