簡體   English   中英

Windows線程(c運行時,pthread,std :: thread)

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

也許這是一個不正確的問題,但是我試圖用一個圖片來鏈接:

  • Windows多線程C運行時(例如_beginthreadex);
  • 並行線程;
  • 的std ::線程;

請給我解釋:

  1. 這些庫在Windows上是分開的,還是彼此分層?
  2. pthread是否在Windows上使用多線程C運行時?
  3. 在Windows上std :: thread是否使用多線程C運行時? Windows上的std :: thread實現是否包裝WinThreads?

簡短的回答是, std::thread是操作系統的線程API的高層抽象。 它在Windows上使用線程WinAPI,在Linux上使用pthreads

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM