- Mastering C++ Multithreading
- Maya Posch
- 152字
- 2021-07-15 17:34:05
Boost
Boost threads is a relatively small part of the Boost collection of libraries. It was, however, used as the basis for what became the multithreading implementation in C++11, similar to how other Boost libraries ultimately made it, fully or partially, into new C++ standards. Refer to the C++ threads section in this chapter for details on the multithreading API.
Features missing in the C++11 standard, which are available in Boost threads, include the following:
- Thread groups (like Windows jobs)
- Thread interruption (cancellation)
- Thread join with timeout
- Additional mutual exclusion lock types (improved with C++14)
Unless one absolutely needs such features, or if one cannot use a compiler which supports the C++11 standard (including STL threads), there is little reason to use Boost threads over the C++11 implementation.
Since Boost provides wrappers around native OS features, using native C++ threads would likely reduce overhead depending on the quality of the STL implementation.
- 深度實踐OpenStack:基于Python的OpenStack組件開發
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- HTML5+CSS3網站設計基礎教程
- C#實踐教程(第2版)
- HoloLens與混合現實開發
- C++語言程序設計
- Hands-On Kubernetes on Windows
- JavaScript+jQuery網頁特效設計任務驅動教程
- 3ds Max印象 電視欄目包裝動畫與特效制作
- RubyMotion iOS Develoment Essentials
- 深入解析Java編譯器:源碼剖析與實例詳解
- 嵌入式Linux C語言程序設計基礎教程
- DB2SQL性能調優秘笈
- Solr權威指南(下卷)
- Kotlin入門與實戰