Maybe it is incorrect question, but I am trying to link in one picture terms:
- Windows multithreaded C run-time (for example _beginthreadex);
- pthreads;
- std::thread;
Please give me explanation on:
- These libraries are separate on Windows or they layered under each other?
- Does pthread use multithreaded C run-time on Windows?
- Does std::thread use multithreaded C run-time on Windows? Is std::thread realization on Windows wraps WinThreads?
As a brief answer,
std::threadis a higher level abstraction of threading API of the OS. It uses threading WinAPI on Windows,pthreadson Linux.