Edward83
Edward83

Reputation: 6686

Windows threads (c run-time, pthreads, std::thread)

Maybe it is incorrect question, but I am trying to link in one picture terms:

Please give me explanation on:

  1. These libraries are separate on Windows or they layered under each other?
  2. Does pthread use multithreaded C run-time on Windows?
  3. Does std::thread use multithreaded C run-time on Windows? Is std::thread realization on Windows wraps WinThreads?

Upvotes: 2

Views: 665

Answers (1)

ali_bahoo
ali_bahoo

Reputation: 4863

As a brief answer, std::thread is a higher level abstraction of threading API of the OS. It uses threading WinAPI on Windows, pthreads on Linux.

Upvotes: 6

Related Questions