#include <iostream> #include <thread> int main(int argc, char *argv[]) { std::thread t = std::thread([]() { std::cout << "Hello world!" << std::endl; }); t.join(); return 0; }