Question: what is the difference between thread and pthread?
Answer: C++11 thread library is a RAII, exception-safe C++ library portable among OSes that support threads. pthread is a Unix-only, C library for threading (which the C++11 thread library actually uses in the implementation!)