Skip to content

Instantly share code, notes, and snippets.

@khoa-io
Last active September 27, 2022 04:11
Show Gist options
  • Save khoa-io/f31f95be8dee5af8d7456f8b82e1714c to your computer and use it in GitHub Desktop.
Save khoa-io/f31f95be8dee5af8d7456f8b82e1714c to your computer and use it in GitHub Desktop.
Compile hello_multithreading_world.cc
$ c++ -Wall -Wextra -Werror hello_multithreading_world.cc -o hello_multithreading_world
$ ./hello_multithreading_world
Hello Multithreading World
$ clang++ -Wall -Wextra -Werror hello_multithreading_world.cc -o hello_multithreading_world
$ ./hello_multithreading_world
Hello Multithreading World
$ g++ -Wall -Wextra -Werror hello_multithreading_world.cc -o hello_multithreading_world
$ ./hello_multithreading_world
Hello Multithreading World
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment