Defined in header <thread> class thread; (since C++11)
The class thread represents a single thread of execution. Threads allow multiple pieces of code to run asynchronously and simultaneously.
std::thread objects may also be in the state that does not represent any thread (it gets into that state after default construction, a move from, detach, or join), and a thread of execution may be not associated with any thread objects (it gets into that state after detach). No two st