I tried to copy the following code from https://www.cplusplus.com/reference/thread/thread/ to my editor:
// thread exa