The difference between join and detach
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 ex