title: Advantage of std::thread over pthread in C++
body: <p>I have seen code that uses <code>pthread</code> to write multi-threaded programs in C++ and other codes that use the <code>std::thread</code> library. What is the advantage of using the thread library instead of <code>pthread</code>?</p>