c++ terminate called after throwing an instance of ‘std::system_error‘ what(): Unknown error -1

During thread programming, the compiler broadcasts
Terminate called after throwing an instance of ‘STD ::system_error’
you are able to terminate called br> what(): Unknown error-1
Aborted (core dumped)
and add the -pthread option. G++ -std=c++11 -pthread thread_demo.cpp-o demo.
When Clion compiles, this error is reported. You need to modify the compile option at cmakelists. TXT.

Read More: