What is different between join() and detach() for multi threading in C++?
A C++ thread object generally (but not always) represents a thread of execution, which is an OS or platform concept. When thread::join() is called, the calling thread will block until the thread of execution has completed. Basically, this is one mechanism that can be used to know when a thread has finished. When thread::join() returns, … Read more