I've created a new thread using the std::thread and then called detach method on the thread object to let the thread to run independently from the calling program.
My question is what will happen with a such detached thread when the calling process terminates while the tread is still running (doing some long time, background job). Will it be just forcefully terminated by the OS when the spawning process terminates?