fork download
  1. #include <iostream>
  2. #include <thread>
  3. #include <algorithm>
  4.  
  5. void hi() {
  6. std::cout << "Hello, World" << std::endl;
  7. }
  8.  
  9. int main() {
  10. std::thread t1(hi);
  11. t1.join();
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 4816KB
stdin
Standard input is empty
stdout
Hello, World