O'Reilly logo
  • Alexander Jaworowski thinks this is interesting:

Listing 1.1. A simple Hello, Concurrent World program

From

Cover of C++ Concurrency in Action: Practical Multithreading

Note

build with (linux):
g++ -std=c++11 hello_async.cpp -lpthread -o hello_async